This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: More Solaris 2 ABI fixes: emit local _START_, _END_


On 10/12/2010 10:16 AM, Rainer Orth wrote:
> Thanks for the hint.  This worked, although I'm setting forced_local to
> 1; whether or not I added STV_HIDDEN made no difference.  There's one
> minor problem, though: if generating a shared object, _START_ and _END_
> are emitted into .dynsym, unlike what Sun ld does.  I've tried to set
> h->dynamic to 0, but that had no effect.

Odd.  I would have expected both of these to work.

> 	* emultempl/solaris2.em (elf_solaris2_before_allocation): Renamed
> 	basever_syms to global_syms.
> 	Emit global_syms into .dynamic section for all executables and
> 	shared objects.
> 	(elf_solaris2_after_allocation): New function.
> 	(LDEMUL_AFTER_ALLOCATION): Use it.
> 	* emulparams/solaris2.sh: New file.
> 	* emulparams/elf32_sparc_sol2.sh: Use it.
> 	* emulparams/elf64_sparc_sol2.sh: Likewise.
> 	* emulparams/elf_i386_sol2.sh: Likewise.
> 	* emulparams/elf_x86_64_sol2.sh: Likewise.
> 	* Makefile.am (eelf32_sparc_sol2.c): Depend on
> 	$(srcdir)/emulparams/solaris2.sh.
> 	(eelf64_sparc_sol2.c): Likewise.
> 	(eelf_x86_64_sol2.c): Likewise.
> 	(eelf_i386_sol2.c): Likewise.
> 	* Makefile.in: Regenerate.

Ok.


r~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]