Add support for the .gnu.sgstubs section to the linker for ARM/ELF based targets.
authorNick Clifton <nickc@redhat.com>
Mon, 17 Apr 2023 14:48:45 +0000 (15:48 +0100)
committerNick Clifton <nickc@redhat.com>
Mon, 17 Apr 2023 14:48:45 +0000 (15:48 +0100)
  PR 30354
  * emulparams/armelf.sh (OTHER_PLT_SECTIONS): Define in order to handle the .gnu.sgstubs section.

ld/ChangeLog
ld/emulparams/armelf.sh

index 6b03cffb34fc0aec849da1c4f93d27d845196e37..b829befb08e2222a96bd4fa2a8a5cd79a03c49cd 100644 (file)
@@ -1,3 +1,9 @@
+2023-04-17  Nick Clifton  <nickc@redhat.com>
+
+       PR 30354
+       * emulparams/armelf.sh (OTHER_PLT_SECTIONS): Define in order to
+       handle the .gnu.sgstubs section.
+
 2023-04-13  Claudiu Zissulescu  <claziss@synopsys.com>
 
        * testsuite/ld-arc/arc.exp: Update execution predicate.
index 1995c449975c4fb4a7de366c8c49c6e9f4c55659..dd71fe77e6f7fa3e39a684aa569c119295cdb828 100644 (file)
@@ -6,6 +6,8 @@ LITTLE_OUTPUT_FORMAT="elf32-littlearm"
 TEXT_START_ADDR=0x8000
 TEMPLATE_NAME=elf
 EXTRA_EM_FILE=armelf
+OTHER_PLT_SECTIONS="
+  .gnu.sgstubs    : { *(.gnu.sgstubs*) }"
 OTHER_TEXT_SECTIONS='*(.glue_7t) *(.glue_7) *(.vfp11_veneer) *(.v4_bx)'
 OTHER_BSS_SYMBOLS="${CREATE_SHLIB+PROVIDE (}__bss_start__ = .${CREATE_SHLIB+)};"
 OTHER_BSS_END_SYMBOLS="${CREATE_SHLIB+PROVIDE (}_bss_end__ = .${CREATE_SHLIB+)}; ${CREATE_SHLIB+PROVIDE (}__bss_end__ = .${CREATE_SHLIB+)};"