bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/19254] "too many sections" when linking COFF executables


From: olsner at gmail dot com
Subject: [Bug ld/19254] "too many sections" when linking COFF executables
Date: Fri, 02 Dec 2016 12:30:52 +0000

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

--- Comment #3 from Simon Brenner <olsner at gmail dot com> ---
Looked a bit at the pe.sc script in git[1] earlier and there is actually
section merging being done there, but for sections named like ".data$*" rather
than the ELF convention of ".data.*" - so this could actually be a bug on the
GHC side failing to use the platform convention for subsection names.

[1]
https://sourceware.org/git/?p=binutils.git;a=blob;f=ld/scripttempl/pe.sc;h=59ce0420d58803b6b7154f6c31b0b016448c4d11;hb=master


It also seems to be intentional on ld's side to not do any section merging for
`ld -r` invocations. If the linker is supposed to do that, I think it should be
added for ELF too. (GHC currently has to use a custom linker script to get ld
-r with section merging.)

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