This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Dynamic section symbols, ignored output sections
- From: ligang at sunnorth dot com dot cn
- To: Alan Modra <amodra at bigpond dot net dot au>
- Cc: binutils at sourceware dot org
- Date: Thu, 19 Oct 2006 19:09:30 +0800
- Subject: Re: Dynamic section symbols, ignored output sections
- Sensitivity:
Alan Modra <amodra@bigpond.net.au> wrote on 2006-10-17 21:24:27:
> On Thu, Oct 12, 2006 at 01:13:41PM +0930, Alan Modra wrote:
> > a) Detecting a symbol assignment in a linker script should result in
the
> > section alignment and vma being honoured.
> > b) All the ELF backends will need changes so that removed output
section
> > syms are never used when emitting relocs. At the same time, we may
> > as well just use one section sym for all relocs (or two for targets
> > that might want to relocate the data segment separately from the
text
> > segment).
> > c) _bfd_fix_excluded_sec_syms should be changed to not create absolute
> > syms.
>
> This patch does all of the above, plus adjusts the ld testsuite for
> the changes. A number of ELF targets will now use no dynamic section
> symbols while others will just use one (or two when TLS is involved).
> I started looking at FRV, and decided to leave the dyn sym change to a
> target maintainer because it seemed likely to me that I'd break
> something.. I also won't commit the S+core patch included here until
> I get the OK from Mei Ligang; It changes elf32-score.c to use the
> zero index symbol on dynamic relocations rather than use section
> symbols. This is desirable on a new target as it should speed ld.so
> slightly, but of course the dynamic linker support needs to be
> available.
It is OK.
> Alan Modra
> IBM OzLabs - Linux Technology Centre