Browse Source

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>
Callum Farmer 2 years ago
parent
commit
bf6fd0405d
1 changed files with 1 additions and 15 deletions
  1. 1 15
      gnuefi/elf_ia32_efi.lds

+ 1 - 15
gnuefi/elf_ia32_efi.lds

@@ -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)