This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: The .sbss section on ELF/x86
"H . J . Lu" <hjl@lucon.org> writes:
|> On Mon, Nov 26, 2001 at 04:57:17PM -0800, Geoff Keating wrote:
|> > > Date: Mon, 26 Nov 2001 16:54:31 -0800
|> > > From: "H . J . Lu" <hjl@lucon.org>
|> >
|> > > ELF/x86 doesn't use/have the .sbss section. I don't want it in every
|> > > ELF/x86 binary. To the least, ld should output the .bss section only
|> > > for targets which actually use it.
|> >
|> > I guess you could have a NO_SBSS shell variable, and conditionalise
|> > the definition on that...
|> >
|>
|> Like this?
|>
|> H.J.
|> ----
|> 2001-11-26 H.J. Lu <hjl@gnu.org>
|>
|> * emulparams/elf_i386.sh (NO_SMALL_DATA): Set to yes.
|>
|> * scripttempl/elf.sc (SBSS): New. Define if ${NO_SMALL_DATA}
|> is not empty.
|> (RELOCATION_SMALL_DATA): Likewise.
|> (SBSS2): Define if ${NO_SMALL_DATA} is not empty.
|> (SDATA2): Likewise.
|>
|> Index: ld/emulparams/elf_i386.sh
|> ===================================================================
|> RCS file: /work/cvs/gnu/binutils/ld/emulparams/elf_i386.sh,v
|> retrieving revision 1.1.1.2
|> diff -d -u -p -r1.1.1.2 elf_i386.sh
|> --- ld/emulparams/elf_i386.sh 2001/08/17 16:06:08 1.1.1.2
|> +++ ld/emulparams/elf_i386.sh 2001/11/27 06:14:19
|> @@ -8,3 +8,4 @@ MACHINE=
|> NOP=0x90909090
|> TEMPLATE_NAME=elf32
|> GENERATE_SHLIB_SCRIPT=yes
|> +NOSBSS=yes
That should be NO_SMALL_DATA=yes, I guess. Additionally, ELF/m68k does
not use small data either, so this line should be added to m68kelf.sh as
well.
Andreas.
--
Andreas Schwab "And now for something
Andreas.Schwab@suse.de completely different."
SuSE Labs, SuSE GmbH, Schanzäckerstr. 10, D-90443 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5