diff options
Diffstat (limited to 'ld/testsuite/ld-powerpc')
-rw-r--r-- | ld/testsuite/ld-powerpc/vxworks1-lib.rd | 3 | ||||
-rw-r--r-- | ld/testsuite/ld-powerpc/vxworks1-lib.s | 3 | ||||
-rw-r--r-- | ld/testsuite/ld-powerpc/vxworks1.ld | 3 |
3 files changed, 8 insertions, 1 deletions
diff --git a/ld/testsuite/ld-powerpc/vxworks1-lib.rd b/ld/testsuite/ld-powerpc/vxworks1-lib.rd index 17087f1..2aaf878 100644 --- a/ld/testsuite/ld-powerpc/vxworks1-lib.rd +++ b/ld/testsuite/ld-powerpc/vxworks1-lib.rd @@ -4,8 +4,9 @@ Relocation section '\.rela\.plt' at offset .* contains 2 entries: 0008140c .*15 R_PPC_JMP_SLOT 00000000 sexternal \+ 0 00081410 .*15 R_PPC_JMP_SLOT 00080c48 sglobal \+ 0 -Relocation section '\.rela\.dyn' at offset .* contains 4 entries: +Relocation section '\.rela\.dyn' at offset .* contains 5 entries: Offset Info Type Sym\.Value Sym\. Name \+ Addend +00081c00 00000016 R_PPC_RELATIVE * 00080c44 00080c0e .*06 R_PPC_ADDR16_HA 00000000 __GOTT_BASE__ \+ 0 00080c12 .*04 R_PPC_ADDR16_LO 00000000 __GOTT_BASE__ \+ 0 00080c16 .*03 R_PPC_ADDR16 00000000 __GOTT_INDEX__ \+ 0 diff --git a/ld/testsuite/ld-powerpc/vxworks1-lib.s b/ld/testsuite/ld-powerpc/vxworks1-lib.s index 8e286c1..9dfcb0f 100644 --- a/ld/testsuite/ld-powerpc/vxworks1-lib.s +++ b/ld/testsuite/ld-powerpc/vxworks1-lib.s @@ -32,4 +32,7 @@ sglobal: blr .size sglobal, .-sglobal + .data + .4byte slocal + .comm x,4,4 diff --git a/ld/testsuite/ld-powerpc/vxworks1.ld b/ld/testsuite/ld-powerpc/vxworks1.ld index 540e0eb..69fe044 100644 --- a/ld/testsuite/ld-powerpc/vxworks1.ld +++ b/ld/testsuite/ld-powerpc/vxworks1.ld @@ -24,4 +24,7 @@ SECTIONS . = ALIGN (0x400); .bss : { *(.bss) } + + . = ALIGN (0x400); + .data : { *(.data) } } |