From: Daniel Jacobowitz Date: Mon, 13 Nov 2006 21:18:36 +0000 (+0000) Subject: * ld-arm/arm-dyn.ld, ld-arm/arm-lib.ld: Remove .stack. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f53e1b4030585ec2db270b8769d69c6b320ae348;p=binutils-gdb.git * ld-arm/arm-dyn.ld, ld-arm/arm-lib.ld: Remove .stack. * ld-arm/armthumb-lib.d, ld-arm/mixed-app.d, ld-arm/mixed-lib.d: Allow smaller section gap. * ld-arm/armthumb-lib.sym, ld-arm/mixed-lib.sym: Reorder. Remove _stack. * ld-arm/mixed-app.sym: Remove _stack. * ld-arm/tls-app.d: Update start address. --- diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog index 397caa11e35..ed48677e469 100644 --- a/ld/testsuite/ChangeLog +++ b/ld/testsuite/ChangeLog @@ -1,3 +1,13 @@ +2006-11-13 Daniel Jacobowitz + + * ld-arm/arm-dyn.ld, ld-arm/arm-lib.ld: Remove .stack. + * ld-arm/armthumb-lib.d, ld-arm/mixed-app.d, ld-arm/mixed-lib.d: + Allow smaller section gap. + * ld-arm/armthumb-lib.sym, ld-arm/mixed-lib.sym: Reorder. Remove + _stack. + * ld-arm/mixed-app.sym: Remove _stack. + * ld-arm/tls-app.d: Update start address. + 2006-11-08 Alan Modra * ld-elf/group.ld: Handle .rodata.brlt for powerpc64. diff --git a/ld/testsuite/ld-arm/arm-dyn.ld b/ld/testsuite/ld-arm/arm-dyn.ld index 96bc10c0c4c..4f2e0de39e0 100644 --- a/ld/testsuite/ld-arm/arm-dyn.ld +++ b/ld/testsuite/ld-arm/arm-dyn.ld @@ -187,11 +187,6 @@ SECTIONS .debug_funcnames 0 : { *(.debug_funcnames) } .debug_typenames 0 : { *(.debug_typenames) } .debug_varnames 0 : { *(.debug_varnames) } - .stack 0x80000 : - { - _stack = .; - *(.stack) - } .note.gnu.arm.ident 0 : { KEEP (*(.note.gnu.arm.ident)) } /DISCARD/ : { *(.note.GNU-stack) } } diff --git a/ld/testsuite/ld-arm/arm-lib.ld b/ld/testsuite/ld-arm/arm-lib.ld index 0415d20d8a6..2d2850e3da1 100644 --- a/ld/testsuite/ld-arm/arm-lib.ld +++ b/ld/testsuite/ld-arm/arm-lib.ld @@ -180,11 +180,6 @@ SECTIONS .debug_funcnames 0 : { *(.debug_funcnames) } .debug_typenames 0 : { *(.debug_typenames) } .debug_varnames 0 : { *(.debug_varnames) } - .stack 0x80000 : - { - _stack = .; - *(.stack) - } .note.gnu.arm.ident 0 : { KEEP (*(.note.gnu.arm.ident)) } /DISCARD/ : { *(.note.GNU-stack) } } diff --git a/ld/testsuite/ld-arm/armthumb-lib.d b/ld/testsuite/ld-arm/armthumb-lib.d index 66e0590487a..ebbb390e899 100644 --- a/ld/testsuite/ld-arm/armthumb-lib.d +++ b/ld/testsuite/ld-arm/armthumb-lib.d @@ -20,7 +20,7 @@ Disassembly of section .text: .* : .*: e1a0c00d mov ip, sp .*: e92dd800 stmdb sp!, {fp, ip, lr, pc} - .*: ebfffff. bl .* <.text-0x..> + .*: ebfffff. bl .* <.text-0x..?> .*: e89d6800 ldmia sp, {fp, sp, lr} .*: e12fff1e bx lr .*: e1a00000 nop \(mov r0,r0\) @@ -38,7 +38,7 @@ Disassembly of section .text: .*: 46c0 nop \(mov r8, r8\) .* : - .*: e59fc004 ldr ip, \[pc, #4\] ; 33c + .*: e59fc004 ldr ip, \[pc, #4\] ; .* .*: e08cc00f add ip, ip, pc .*: e12fff1c bx ip .*: ffffffe5 .* diff --git a/ld/testsuite/ld-arm/armthumb-lib.sym b/ld/testsuite/ld-arm/armthumb-lib.sym index d05794c0932..d482ccd4ba2 100644 --- a/ld/testsuite/ld-arm/armthumb-lib.sym +++ b/ld/testsuite/ld-arm/armthumb-lib.sym @@ -2,17 +2,16 @@ Symbol table for image: Num Buc: Value Size Type Bind Vis Ndx Name .. ..: ........ 0 NOTYPE GLOBAL DEFAULT ABS _edata - .. ..: .......0 20 FUNC GLOBAL DEFAULT 6 lib_func1 - .. ..: .......0 2 FUNC GLOBAL DEFAULT 6 lib_func2 - .. ..: ........ 0 NOTYPE GLOBAL DEFAULT ABS _bss_end__ - .. ..: ........ 0 NOTYPE GLOBAL DEFAULT ABS __bss_end__ - .. ..: ........ 0 NOTYPE GLOBAL DEFAULT ABS _stack - .. ..: ........ 4 OBJECT GLOBAL DEFAULT 9 data_obj .. ..: ........ 0 NOTYPE GLOBAL DEFAULT ABS __bss_start__ - .. ..: ........ 0 NOTYPE GLOBAL DEFAULT ABS __bss_start .. ..: ........ 0 NOTYPE GLOBAL DEFAULT ABS _end - .. ..: 00000000 0 NOTYPE GLOBAL DEFAULT UND app_func2 - .. ..: ........ 0 NOTYPE GLOBAL DEFAULT ABS __exidx_end + .. ..: ........ 4 OBJECT GLOBAL DEFAULT 9 data_obj + .. ..: ........ 0 NOTYPE GLOBAL DEFAULT ABS __bss_end__ + .. ..: .......0 20 FUNC GLOBAL DEFAULT 6 lib_func1 + .. ..: ........ 0 NOTYPE GLOBAL DEFAULT ABS __exidx_start .. ..: ........ 0 NOTYPE GLOBAL DEFAULT 9 __data_start .. ..: ........ 0 NOTYPE GLOBAL DEFAULT ABS __end__ - .. ..: ........ 0 NOTYPE GLOBAL DEFAULT ABS __exidx_start + .. ..: ........ 0 NOTYPE GLOBAL DEFAULT ABS __bss_start + .. ..: 00000000 0 NOTYPE GLOBAL DEFAULT UND app_func2 + .. ..: .......0 2 FUNC GLOBAL DEFAULT 6 lib_func2 + .. ..: ........ 0 NOTYPE GLOBAL DEFAULT ABS _bss_end__ + .. ..: ........ 0 NOTYPE GLOBAL DEFAULT ABS __exidx_end diff --git a/ld/testsuite/ld-arm/mixed-app.d b/ld/testsuite/ld-arm/mixed-app.d index 7893a33d3da..dd61caab26c 100644 --- a/ld/testsuite/ld-arm/mixed-app.d +++ b/ld/testsuite/ld-arm/mixed-app.d @@ -34,7 +34,7 @@ Disassembly of section .text: .* : .*: e1a0c00d mov ip, sp .*: e92dd800 stmdb sp!, {fp, ip, lr, pc} - .*: ebfffff. bl .* + .*: ebffff.. bl .* .*: e89d6800 ldmia sp, {fp, sp, lr} .*: e12fff1e bx lr .*: e1a00000 nop \(mov r0,r0\) diff --git a/ld/testsuite/ld-arm/mixed-app.sym b/ld/testsuite/ld-arm/mixed-app.sym index b0f4f60a9ba..c63a3438269 100644 --- a/ld/testsuite/ld-arm/mixed-app.sym +++ b/ld/testsuite/ld-arm/mixed-app.sym @@ -9,7 +9,6 @@ Symbol table for image: .. ..: 0*[^0]*.* 20 FUNC GLOBAL DEFAULT UND lib_func1 .. ..: ........ 0 NOTYPE GLOBAL DEFAULT ABS __exidx_start .. ..: ........ 0 NOTYPE GLOBAL DEFAULT 11 __data_start - .. ..: ........ 0 NOTYPE GLOBAL DEFAULT 12 _stack .. ..: ........ 0 NOTYPE GLOBAL DEFAULT ABS __end__ .. ..: ........ 0 NOTYPE GLOBAL DEFAULT ABS __bss_start .. ..: .......0 0 FUNC GLOBAL DEFAULT 8 app_func2 diff --git a/ld/testsuite/ld-arm/mixed-lib.d b/ld/testsuite/ld-arm/mixed-lib.d index 0c426f36c72..b70eef873cb 100644 --- a/ld/testsuite/ld-arm/mixed-lib.d +++ b/ld/testsuite/ld-arm/mixed-lib.d @@ -20,7 +20,7 @@ Disassembly of section .text: .* : .*: e1a0c00d mov ip, sp .*: e92dd800 stmdb sp!, {fp, ip, lr, pc} - .*: ebfffff. bl .* <.text-0x..> + .*: ebfffff. bl .* <.text-0x..?> .*: e89d6800 ldmia sp, {fp, sp, lr} .*: e12fff1e bx lr .*: e1a00000 nop \(mov r0,r0\) diff --git a/ld/testsuite/ld-arm/mixed-lib.sym b/ld/testsuite/ld-arm/mixed-lib.sym index 4ccccdb35af..677d2ed6514 100644 --- a/ld/testsuite/ld-arm/mixed-lib.sym +++ b/ld/testsuite/ld-arm/mixed-lib.sym @@ -2,17 +2,16 @@ Symbol table for image: Num Buc: Value Size Type Bind Vis Ndx Name .. ..: ........ 0 NOTYPE GLOBAL DEFAULT ABS _edata - .. ..: .......0 20 FUNC GLOBAL DEFAULT 6 lib_func1 - .. ..: .......1 2 FUNC GLOBAL DEFAULT 6 lib_func2 - .. ..: ........ 0 NOTYPE GLOBAL DEFAULT ABS _bss_end__ - .. ..: ........ 0 NOTYPE GLOBAL DEFAULT ABS __bss_end__ - .. ..: ........ 0 NOTYPE GLOBAL DEFAULT ABS _stack - .. ..: ........ 4 OBJECT GLOBAL DEFAULT 9 data_obj .. ..: ........ 0 NOTYPE GLOBAL DEFAULT ABS __bss_start__ - .. ..: ........ 0 NOTYPE GLOBAL DEFAULT ABS __bss_start .. ..: ........ 0 NOTYPE GLOBAL DEFAULT ABS _end - .. ..: 00000000 0 NOTYPE GLOBAL DEFAULT UND app_func2 - .. ..: ........ 0 NOTYPE GLOBAL DEFAULT ABS __exidx_end + .. ..: ........ 4 OBJECT GLOBAL DEFAULT 9 data_obj + .. ..: ........ 0 NOTYPE GLOBAL DEFAULT ABS __bss_end__ + .. ..: .......0 20 FUNC GLOBAL DEFAULT 6 lib_func1 + .. ..: ........ 0 NOTYPE GLOBAL DEFAULT ABS __exidx_start .. ..: ........ 0 NOTYPE GLOBAL DEFAULT 9 __data_start .. ..: ........ 0 NOTYPE GLOBAL DEFAULT ABS __end__ - .. ..: ........ 0 NOTYPE GLOBAL DEFAULT ABS __exidx_start + .. ..: ........ 0 NOTYPE GLOBAL DEFAULT ABS __bss_start + .. ..: 00000000 0 NOTYPE GLOBAL DEFAULT UND app_func2 + .. ..: .......1 2 FUNC GLOBAL DEFAULT 6 lib_func2 + .. ..: ........ 0 NOTYPE GLOBAL DEFAULT ABS _bss_end__ + .. ..: ........ 0 NOTYPE GLOBAL DEFAULT ABS __exidx_end diff --git a/ld/testsuite/ld-arm/tls-app.d b/ld/testsuite/ld-arm/tls-app.d index 67e5de4dca5..c1d61abeeaf 100644 --- a/ld/testsuite/ld-arm/tls-app.d +++ b/ld/testsuite/ld-arm/tls-app.d @@ -2,17 +2,17 @@ .*: file format elf32-.*arm architecture: arm, flags 0x00000112: EXEC_P, HAS_SYMS, D_PAGED -start address 0x00008220 +start address 0x00008204 Disassembly of section .text: -00008220 : - 8220: e1a00000 nop \(mov r0,r0\) - 8224: e1a00000 nop \(mov r0,r0\) - 8228: e1a0f00e mov pc, lr - 822c: 000080bc streqh r8, \[r0\], -ip - 8230: 000080b4 streqh r8, \[r0\], -r4 - 8234: 000080ac andeq r8, r0, ip, lsr #1 - 8238: 00000004 andeq r0, r0, r4 - 823c: 000080c4 andeq r8, r0, r4, asr #1 - 8240: 00000014 andeq r0, r0, r4, lsl r0 +00008204 : + 8204: e1a00000 nop \(mov r0,r0\) + 8208: e1a00000 nop \(mov r0,r0\) + 820c: e1a0f00e mov pc, lr + 8210: 000080bc streqh r8, \[r0\], -ip + 8214: 000080b4 streqh r8, \[r0\], -r4 + 8218: 000080ac andeq r8, r0, ip, lsr #1 + 821c: 00000004 andeq r0, r0, r4 + 8220: 000080c4 andeq r8, r0, r4, asr #1 + 8224: 00000014 andeq r0, r0, r4, lsl r0