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.
_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to