diff options
author | Richard Sandiford <rdsandiford@googlemail.com> | 2008-03-20 10:53:11 +0000 |
---|---|---|
committer | Richard Sandiford <rdsandiford@googlemail.com> | 2008-03-20 10:53:11 +0000 |
commit | ccb4c9519b8b4528411a85b654af60c7dd598894 (patch) | |
tree | aa0b1ca991bdaa02f5f3cb701bf727f7cc697d70 /ld/testsuite/ld-mips-elf/got-dump-1.s | |
parent | 51e38d68782784e67211a66c5408d1c1943f1aa9 (diff) | |
download | gdb-ccb4c9519b8b4528411a85b654af60c7dd598894.zip gdb-ccb4c9519b8b4528411a85b654af60c7dd598894.tar.gz gdb-ccb4c9519b8b4528411a85b654af60c7dd598894.tar.bz2 |
binutils/
* readelf.c (print_mips_got_entry): New function.
(process_mips_specific): Print GOT information.
ld/testsuite/
* ld-mips-elf/got-dump-1.d, ld-mips-elf/got-dump-1.s,
ld-mips-elf/got-dump-1.ld, ld-mips-elf/got-dump-2.d,
ld-mips-elf/got-dump-2.s, ld-mips-elf/got-dump-2.ld: New tests.
* ld-mips-elf/mips-elf.exp: Run them.
Diffstat (limited to 'ld/testsuite/ld-mips-elf/got-dump-1.s')
-rw-r--r-- | ld/testsuite/ld-mips-elf/got-dump-1.s | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/ld/testsuite/ld-mips-elf/got-dump-1.s b/ld/testsuite/ld-mips-elf/got-dump-1.s new file mode 100644 index 0000000..d6c318e --- /dev/null +++ b/ld/testsuite/ld-mips-elf/got-dump-1.s @@ -0,0 +1,22 @@ + .global glob + .ent glob +glob: + lw $4,%got(local)($28) + addiu $4,$4,%lo(local) + lw $4,%got(hidden)($28) + lw $4,%call16(glob)($28) + lw $4,%call16(extern)($28) + .end glob + + .data + .type local,%object + .size local,4 +local: + .word undef + + .globl hidden + .hidden hidden + .type hidden,%object + .size hidden,4 +hidden: + .word 0 |