Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3002b41b authored by Russell King's avatar Russell King
Browse files

ARM: decompressor: use better output sections



Place read-only data in a .rodata output section, and the compressed
piggy data in .piggydata.  Place the .got.plt section before the .got
section as is standard ELF practise.

This allows the piggydata to be more easily extracted from the
compressed vmlinux file for verification purposes.

Acked-by: default avatarNicolas Pitre <nicolas.pitre@linaro.org>
Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent c1f2d999
Loading
Loading
Loading
Loading
+8 −4
Original line number Diff line number Diff line
@@ -33,20 +33,24 @@ SECTIONS
    *(.text.*)
    *(.fixup)
    *(.gnu.warning)
    *(.glue_7t)
    *(.glue_7)
  }
  .rodata : {
    *(.rodata)
    *(.rodata.*)
    *(.glue_7)
    *(.glue_7t)
  }
  .piggydata : {
    *(.piggydata)
    . = ALIGN(4);
  }

  . = ALIGN(4);
  _etext = .;

  .got.plt		: { *(.got.plt) }
  _got_start = .;
  .got			: { *(.got) }
  _got_end = .;
  .got.plt		: { *(.got.plt) }
  _edata = .;

  . = BSS_START;