This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
How to preserve section group for ld -r?
- From: "H. J. Lu" <hjl at lucon dot org>
- To: binutils at sources dot redhat dot com
- Date: Thu, 29 Apr 2004 09:15:54 -0700
- Subject: How to preserve section group for ld -r?
The current linker doesn't preserve section group for ld -r since
the group section isn't mentioned in the linker script. But I am
having difficulty adding the group section to the linker script. The
plan is
1. All group sections should have name of ".group.signature" since
the linker script doesn't know SHT_GROUP.
2. They will be marked with SEC_LINK_ONCE | SEC_LINK_DUPLICATES_DISCARD.
3. Modify the linker scripte to preserve ".group.*" sections for ld -r.
How do I express #3 in a linker script?
H.J.