Dynamic section symbols, ignored output sections
Thu Oct 19 14:55:00 GMT 2006
Alan Modra <email@example.com> 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
> > section alignment and vma being honoured.
> > b) All the ELF backends will need changes so that removed output
> > 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
> > 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
It is OK.
> Alan Modra
> IBM OzLabs - Linux Technology Centre
More information about the Binutils