소스 검색

From: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Subject: [PATCH] Add ARM .note.gnu.build-id input section to
a dedicated output section

This fixes the builds for ARM and AARCH64, which currently fail at link
time with an error like this:

arm-linux-gnueabi-ld: section .note.gnu.build-id loaded at
[0000000000000000,0000000000000023] overlaps section .text loaded at
[0000000000000000,00000000000064cf]

Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Nigel Croxon <nigel.croxon@hpe.com>

Nigel Croxon 9 년 전
부모
커밋
e64257b90d
2개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      gnuefi/elf_aarch64_efi.lds
  2. 1 0
      gnuefi/elf_arm_efi.lds

+ 1 - 0
gnuefi/elf_aarch64_efi.lds

@@ -50,6 +50,7 @@ SECTIONS
   . = ALIGN(4096);
   . = ALIGN(4096);
   .dynstr   : { *(.dynstr) }
   .dynstr   : { *(.dynstr) }
   . = ALIGN(4096);
   . = ALIGN(4096);
+  .note.gnu.build-id : { *(.note.gnu.build-id) }
   /DISCARD/ :
   /DISCARD/ :
   {
   {
     *(.rel.reloc)
     *(.rel.reloc)

+ 1 - 0
gnuefi/elf_arm_efi.lds

@@ -50,6 +50,7 @@ SECTIONS
   . = ALIGN(4096);
   . = ALIGN(4096);
   .dynstr   : { *(.dynstr) }
   .dynstr   : { *(.dynstr) }
   . = ALIGN(4096);
   . = ALIGN(4096);
+  .note.gnu.build-id : { *(.note.gnu.build-id) }
   /DISCARD/ :
   /DISCARD/ :
   {
   {
     *(.rel.reloc)
     *(.rel.reloc)