Browse Source
* ld-scripts/assert.s: Remove comment. * ld-scripts/data.s: Likewise. * ld-scripts/data.t: Set start address to allow for aout headers. Make first LONG pc-relative. * ld-scripts/data.d: Update. * ld-scripts/defined2.d: Allow other random syms. * ld-scripts/defined3.d: Likewise. * ld-scripts/provide-1.s: Pad section. * ld-scripts/provide-1.t: Set .data address and align. * ld-scripts/provide-1.d: Update. * ld-scripts/provide-2.s: Pad section. * ld-scripts/provide-2.d: Allow random trailing syms. * ld-scripts/provide-3.s: Pad section. * ld-scripts/provide-3.d: Fix typos. * ld-scripts/provide.exp: Don't run on aix. * ld-scripts/size-1.s: Simplify test. * ld-scripts/size-1.t: Rewrite. * ld-scripts/size-1.d: Update. * ld-scripts/size-2.s: Simplify. * ld-scripts/size-2.t: Set start address. Set exe flag on image. * ld-scripts/size-2.d: Update. * ld-scripts/size.exp: Don't run on aix. Run size-2 on all elf targets except mips.jimb-rda-nptl-branch
23 changed files with 104 additions and 58 deletions
@ -1 +0,0 @@ |
|||
#nothing here |
|||
@ -1 +0,0 @@ |
|||
#nothing here |
|||
@ -1,3 +1,4 @@ |
|||
.data |
|||
.globl foo |
|||
foo: .long 0 |
|||
.p2align 4 |
|||
|
|||
@ -1,3 +1,3 @@ |
|||
#source: provide-2.s |
|||
#ld: -T provide-2.t |
|||
#source: provide-3.s |
|||
#ld: -T provide-3.t |
|||
#error: symbol defined in linker script and object file |
|||
|
|||
@ -1,3 +1,4 @@ |
|||
.data |
|||
.globl foo |
|||
foo: .long 0 |
|||
.p2align 4 |
|||
|
|||
@ -1,15 +1,7 @@ |
|||
.section .text,"ax",@progbits |
|||
.text |
|||
.long 1,2 |
|||
.p2align 5 |
|||
|
|||
.section .data,"aw",@progbits |
|||
.data |
|||
.long 3,4,5 |
|||
|
|||
.section .bss,"aw",@nobits |
|||
.long 0,0,0,0 |
|||
|
|||
# thread local storage sections |
|||
.section .tdata,"awT",@progbits |
|||
.long 6,7,8,9,10 |
|||
|
|||
.section .tbss,"awT",@nobits |
|||
.long 0,0,0,0,0,0 |
|||
.p2align 4 |
|||
|
|||
@ -1,15 +1,10 @@ |
|||
SECTIONS |
|||
{ |
|||
.text : { *(.text) } |
|||
.data : { *(.data) } |
|||
.bss : { *(.bss) } |
|||
.tdata : { *(.tdata) } |
|||
.tbss : { *(.tbss) } |
|||
.map : { |
|||
. = 0x1000 + SIZEOF_HEADERS; |
|||
.text ALIGN (0x20) : { *(.text) } |
|||
.data 0x2000 : { |
|||
*(.data) |
|||
LONG (SIZEOF (.text)) |
|||
LONG (SIZEOF (.data)) |
|||
LONG (SIZEOF (.bss)) |
|||
LONG (SIZEOF (.tdata)) |
|||
LONG (SIZEOF (.tbss)) |
|||
} |
|||
} |
|||
|
|||
@ -1,9 +1,8 @@ |
|||
.section .text,"ax",@progbits |
|||
.text |
|||
.long 1,2 |
|||
|
|||
# thread local storage sections |
|||
.section .tdata,"awT",@progbits |
|||
.section .tdata |
|||
.long 6,7,8,9,10 |
|||
|
|||
.section .tbss,"awT",@nobits |
|||
.section .tbss |
|||
.long 0,0,0,0,0,0 |
|||
|
|||
Loading…
Reference in new issue