bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug ld/29973] x86_64-w64-mingw32-g++ ld: helloworld.exe:.rdata_r: secti


From: euloanty at live dot com
Subject: [Bug ld/29973] x86_64-w64-mingw32-g++ ld: helloworld.exe:.rdata_r: section below image base for windows
Date: Wed, 25 Jan 2023 07:56:23 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=29973

--- Comment #10 from cqwrteur <euloanty at live dot com> ---
(In reply to Nick Clifton from comment #4)
> Hi cqwrteur,
> 
>   I am afraid that we are going to need some more information before we can
> get to the bottom of this issue.  For example:
> 
>   * What is the code in helloworld.cc ?
>   * Why is the "-s" option being used ?  
>   * Does the problem still occur if "-s" is not used ?
>   * Similarly, does omitting "-flto" make the linking work ?
> 
> It would help if you could upload the compiled form of helloworld.cc (ie
> helloworld.o).  I did try to reproduce the problem myself, but the link
> worked.  I was however using gcc version 11 not version 13.
> 
> Also which version of the linker are you using ?
> 
> Cheers
>   Nick

just any C++ code that would link to libstdc++

#include<iostream>

int main()
{
    std::cout<<"Hello World\n";
}

For example
remove -s -flto flags they all fail while -fuse-ld=lld would work.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]