Patch: Merge .bss.* sections into the .bss section
Nick Clifton
nickc@cygnus.com
Sat Sep 25 06:13:00 GMT 1999
Hi Guys,
I would like to submit a small patch to the default elf linker
script. It extends the contents of the .bss section so that it will
also accumulate any section named .bss.* This allows the compiler
to place .bss entries into individual sections named .bss.<name_of_var>
and to then perform garbage collection on these sections, just like
it currently does for initialised data that is going to go into the
.data section.
(I have recently submitted a patch to FSF GCC which will allow the
compiler to generate these individual bss sections).
Cheers
Nick
1999-09-25 Nick Clifton <nickc@cygnus.com>
* scripttempl/elf.sc (.bss): Accept sections named .bss.*
Index: scripttempl/elf.sc
===================================================================
RCS file: /cvs/binutils/binutils/ld/scripttempl/elf.sc,v
retrieving revision 1.4
diff -p -r1.4 elf.sc
*** elf.sc 1999/09/10 06:30:37 1.4
--- elf.sc 1999/09/25 13:08:17
*************** SECTIONS
*** 243,248 ****
--- 243,249 ----
{
*(.dynbss)
*(.bss)
+ ${RELOCATING+*(.bss.*)}
*(COMMON)
/* Align here to ensure that the .bss section occupies space up to
_end. Align after .bss to ensure correct alignment even if the
More information about the Binutils
mailing list