[2/6] ARM/Haiku/LD: Handle VFP11 erratum and ARMv4 BX veneers

Message ID alpine.DEB.2.21.2604021751220.29980@angie.orcam.me.uk
State New
Headers
Series Haiku/testsuite: Enable ELF tests |

Checks

Context Check Description
linaro-tcwg-bot/tcwg_binutils_build--master-arm success Build passed
linaro-tcwg-bot/tcwg_binutils_build--master-aarch64 success Build passed
linaro-tcwg-bot/tcwg_binutils_check--master-arm success Test passed
linaro-tcwg-bot/tcwg_binutils_check--master-aarch64 success Test passed

Commit Message

Maciej W. Rozycki April 3, 2026, 1:16 p.m. UTC
  Add the respective veneer sections to the output text section, fixing
regressions revealed by enabling ELF tests with Haiku targets:

arm-haiku  -FAIL: bad .bss / .struct data allocation directives
arm-haiku  -FAIL: VFP11 denorm erratum fix, scalar operation
arm-haiku  -FAIL: VFP11 denorm erratum fix, vector operation

The addition of ARMv4 BX veneer sections is neutral to test results, but 
all the ARM targets include it, so it seems the right change to make for 
Haiku as well if not for consistency.
---
 ld/emulparams/armelf_haiku.sh |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

binutils-arm-ld-haiku-vfp11-v4bx-text.diff
  

Patch

Index: binutils-gdb/ld/emulparams/armelf_haiku.sh
===================================================================
--- binutils-gdb.orig/ld/emulparams/armelf_haiku.sh
+++ binutils-gdb/ld/emulparams/armelf_haiku.sh
@@ -11,7 +11,7 @@  GENERATE_SHLIB_SCRIPT=yes
 GENERATE_PIE_SCRIPT=yes
 
 DATA_START_SYMBOLS='__data_start = . ;';
-OTHER_TEXT_SECTIONS='*(.glue_7t) *(.glue_7)'
+OTHER_TEXT_SECTIONS='*(.glue_7t) *(.glue_7) *(.vfp11_veneer) *(.v4_bx)'
 OTHER_BSS_SYMBOLS='__bss_start__ = .;'
 OTHER_BSS_END_SYMBOLS='_bss_end__ = . ; __bss_end__ = . ;'
 OTHER_END_SYMBOLS='__end__ = . ;'