bug-binutils
[Top][All Lists]
Advanced

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

[Bug gold/30187] ld.bfd and ld.gold versions in .comment section of ELF


From: tkacvins at gmail dot com
Subject: [Bug gold/30187] ld.bfd and ld.gold versions in .comment section of ELF files
Date: Sat, 04 Mar 2023 00:03:16 +0000

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

--- Comment #6 from Tom Kacvinsky <tkacvins at gmail dot com> ---
I found an issue with the patch.  I applied against master and built it.  I
then used gcc 12.1.0 and got this:

$ /opt/gcc-12.1.0/bin/gcc -B /opt/binutils-2.40-version/bin -fuse-ld=bfd -o
wchar wchar.c

/opt/binutils-2.40-version/bin/ld.bfd: wchar: error: PHDR segment not covered
by LOAD segment

If I dump the default linker script and remove the linker version comment
option, and use the resulting file as the link scriot:

$ /opt/gcc-12.1.0/bin/gcc -B /opt/binutils-2.40-version/bin -fuse-ld=bfd
-Wl,--script=noversion.script -o wchar wchar.c

this problem goes away.

-- 
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]