ia32: No sdata section

There is no small data section on ia32,
this ends up being created as ld puts .got/.got.plt
here due to first declaration

Signed-off-by: Callum Farmer <gmbr3@opensuse.org>
This commit is contained in:
Callum Farmer 2023-04-21 13:34:58 +01:00
parent fd3d975161
commit bf6fd0405d

View file

@ -22,26 +22,15 @@ SECTIONS
_etext = .;
_text_size = . - _text;
. = DATA_SEGMENT_ALIGN (CONSTANT (MAXPAGESIZE), CONSTANT (COMMONPAGESIZE));
.sdata :
.data :
{
_data = .;
*(.got.plt)
*(.got)
*(.srodata)
*(.sdata)
*(.sbss)
*(.scommon)
}
. = ALIGN(4096);
.data :
{
*(.rodata*)
*(.data)
*(.data1)
*(.data.*)
*(.sdata)
*(.got.plt)
*(.got)
/*
* Note that these aren't the using the GNU "CONSTRUCTOR" output section
@ -65,8 +54,6 @@ SECTIONS
/* the EFI loader doesn't seem to like a .bss section, so we stick
it all into .data: */
*(.sbss)
*(.scommon)
*(.dynbss)
*(.bss*)
*(COMMON)
@ -79,7 +66,6 @@ SECTIONS
.rel :
{
*(.rel.text*)
*(.rel.sdata*)
*(.rel.data*)
*(.rel.got)
*(.rel.dyn)