This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: Empty sbss sections on ARM
- From: Richard Earnshaw <rearnsha at arm dot com>
- To: Daniel Jacobowitz <drow at mvista dot com>
- Cc: binutils at sources dot redhat dot com, Phil Blundell <pb at nexus dot co dot uk>, Richard dot Earnshaw at arm dot com
- Date: Fri, 26 Sep 2003 16:57:39 +0100
- Subject: Re: Empty sbss sections on ARM
- Organization: ARM Ltd.
- Reply-to: Richard dot Earnshaw at arm dot com
> Is there any reason not to apply this patch? None of the other sbss
> infrastructure appears to be present for ARM.
>
> In other news, the empty .sbss section created without this patch is marked
> as alignment 2**0, SHT_PROGBITS, CONTENTS. Which is obviously wrong but I'm
> not sure how to fix that. That's what got me looking at the problem; the
> prelinker in some situations gets quite upset by this.
>
> --
> Daniel Jacobowitz
> MontaVista Software Debian GNU/Linux Developer
>
> 2003-09-26 Daniel Jacobowitz <drow@mvista.com>
>
> * emulparams/armelf_linux.sh: Define NO_SMALL_DATA.
>
> --- binutils-2.14/ld/emulparams/armelf_linux.sh.orig 2003-09-26 11:08:26.000000000 -0400
> +++ binutils-2.14/ld/emulparams/armelf_linux.sh 2003-09-26 11:08:52.000000000 -0400
> @@ -16,3 +16,5 @@ OTHER_BSS_SYMBOLS='__bss_start__ = .;'
> OTHER_BSS_END_SYMBOLS='_bss_end__ = . ; __bss_end__ = . ; __end__ = . ;'
>
> TEXT_START_ADDR=0x00008000
> +
> +NO_SMALL_DATA=yes
I think this should be done for all ARM/ELF configurations. ARM
processors don't have support for .sfoo sections.
It strikes me as somewhat bizzare that one has to disable this when not
needed rather than enable it when needed. Ho hum...
R.