A weird bug

H.J. Lu hjl.tools@gmail.com
Fri Mar 5 00:09:57 GMT 2021


On Thu, Mar 4, 2021 at 3:18 PM Gary Oblock via Gcc <gcc@gcc.gnu.org> wrote:
>
> Guys,
>
> I've been trying to debug a linker error (which I thought was a bug in
> my optimization.) Well it turns out it occurs in a brand new virgin
> version of the compiler running with binutils 2.36 which is the latest
> version. I'm posting this on both the binutils list and gcc list
> because people of either list are just as likely to have an idea about
> what's going on. Note, I tried to walk though the ld code in gdb but
> it's nontrivial trying figure out why an error occured. I can't just
> set a watch point on a flag because, at least in some places it seems
> like the default state of the flag is failure and the code then
> proceeds to try various things to see if they'll work.
>
> Regarding the compiler that I built:

Here are scripts I used to build Linux/x86-64 GCC toolchain:

https://gitlab.com/hjl.tools/x86-64-linux-toolchain

-- 
H.J.


More information about the Gcc mailing list