[PATCH] ld: Account for .tbss size on Arm embedded targets
Alan Modra
amodra@gmail.com
Thu Sep 3 01:18:54 GMT 2026
On Wed, Sep 02, 2026 at 04:08:11PM +0200, Torbjörn SVENSSON wrote:
> diff --git a/ld/testsuite/ld-arm/tls-app.d b/ld/testsuite/ld-arm/tls-app.d
> index 985e11ecf3e..605f3dd1167 100644
> --- a/ld/testsuite/ld-arm/tls-app.d
> +++ b/ld/testsuite/ld-arm/tls-app.d
> @@ -10,9 +10,9 @@ Disassembly of section .text:
> 8[0-9a-f]+: e1a00000 nop @ \(mov r0, r0\)
> 8[0-9a-f]+: e1a00000 nop @ \(mov r0, r0\)
> 8[0-9a-f]+: e1a0f00e mov pc, lr
> - 8[0-9a-f]+: 000080bc .word 0x000080bc
> - 8[0-9a-f]+: 000080b4 .word 0x000080b4
> - 8[0-9a-f]+: 000080ac .word 0x000080ac
> - 8[0-9a-f]+: 00000004 .word 0x00000004
> - 8[0-9a-f]+: 000080c4 .word 0x000080c4
> - 8[0-9a-f]+: 00000014 .word 0x00000014
> + 8[0-9a-f]+: [0-9a-f]+ .word 0x.*
> + 8[0-9a-f]+: [0-9a-f]+ .word 0x.*
> + 8[0-9a-f]+: [0-9a-f]+ .word 0x.*
> + 8[0-9a-f]+: [0-9a-f]+ .word 0x.*
> + 8[0-9a-f]+: [0-9a-f]+ .word 0x.*
> + 8[0-9a-f]+: [0-9a-f]+ .word 0x.*
I didn't mean that you should allow any value here. I meant the
following for each offset that differs when .got moves due to .tbss
taking space.
> - 8[0-9a-f]+: 000080bc .word 0x000080bc
> + 8[0-9a-f]+: 000080(bc|c4) .*
--
Alan Modra
More information about the Binutils
mailing list