This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: More Solaris 2 ABI fixes: emit local _START_, _END_
- From: Richard Henderson <rth at redhat dot com>
- To: Rainer Orth <ro at CeBiTec dot Uni-Bielefeld dot DE>
- Cc: binutils at sourceware dot org
- Date: Tue, 12 Oct 2010 11:16:42 -0700
- Subject: Re: More Solaris 2 ABI fixes: emit local _START_, _END_
- References: <yddlj6n863a.fsf@manam.CeBiTec.Uni-Bielefeld.DE> <4CA0D32E.9080908@redhat.com> <yddtykr49h6.fsf@manam.CeBiTec.Uni-Bielefeld.DE>
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~