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

Maciej W. Rozycki macro@orcam.me.uk
Fri Apr 3 13:16:09 GMT 2026


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
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__ = . ;'


More information about the Binutils mailing list