summaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-alpha
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>2011-04-12 23:23:02 +0000
committerRichard Henderson <rth@redhat.com>2011-04-12 23:23:02 +0000
commite40eb1da776d02de040a7a4d5f104d857559551c (patch)
tree40fa797f214cbd91e661218189d43d9f5075e910 /ld/testsuite/ld-alpha
parentb8b86d08558db7b7e10721813b21121b2bf0a9b0 (diff)
downloadbinutils-redhat-e40eb1da776d02de040a7a4d5f104d857559551c.tar.gz
* elf64-alpha.c (elf64_alpha_size_dynamic_sections): Do not
exclude empty .got sections.
Diffstat (limited to 'ld/testsuite/ld-alpha')
-rw-r--r--ld/testsuite/ld-alpha/alpha.exp11
-rw-r--r--ld/testsuite/ld-alpha/emptygot.nm5
-rw-r--r--ld/testsuite/ld-alpha/emptygot.s7
3 files changed, 20 insertions, 3 deletions
diff --git a/ld/testsuite/ld-alpha/alpha.exp b/ld/testsuite/ld-alpha/alpha.exp
index dce2f45051..ed95d88ff7 100644
--- a/ld/testsuite/ld-alpha/alpha.exp
+++ b/ld/testsuite/ld-alpha/alpha.exp
@@ -41,19 +41,24 @@ set alphatests {
"" {align.s tlspic1.s tlspic2.s}
{{readelf -WSsrl tlspic.rd} {objdump -drj.text tlspic.dd}
{objdump -sj.got tlspic.sd} {objdump -sj.tdata tlspic.td}}
- "libtlspic.so"}
+ "libtlspic.so"}
{"Helper shared library" "-shared -melf64alpha"
"" {tlslib.s} {} "libtlslib.so"}
{"TLS -fpic and -fno-pic exec"
"-melf64alpha tmpdir/libtlslib.so" "" {align.s tlsbinpic.s tlsbin.s}
{{readelf -WSsrl tlsbin.rd} {objdump -drj.text tlsbin.dd}
{objdump -sj.got tlsbin.sd} {objdump -sj.tdata tlsbin.td}}
- "tlsbin"}
+ "tlsbin"}
{"TLS -fpic and -fno-pic exec -relax"
"-relax -melf64alpha tmpdir/libtlslib.so" "" {align.s tlsbinpic.s tlsbin.s}
{{readelf -WSsrl tlsbinr.rd} {objdump -drj.text tlsbinr.dd}
{objdump -sj.got tlsbinr.sd}}
- "tlsbinr"}
+ "tlsbinr"}
+ {"empty got"
+ "-melf64alpha" ""
+ {emptygot.s}
+ {{nm "-n" emptygot.nm}}
+ "emptygot"}
}
# Not implemented yet
diff --git a/ld/testsuite/ld-alpha/emptygot.nm b/ld/testsuite/ld-alpha/emptygot.nm
new file mode 100644
index 0000000000..db3a03d89d
--- /dev/null
+++ b/ld/testsuite/ld-alpha/emptygot.nm
@@ -0,0 +1,5 @@
+00000001200000b0 T _start
+00000001200100b8 A __bss_start
+00000001200100b8 A _edata
+00000001200100b8 s foo
+00000001200100c0 A _end
diff --git a/ld/testsuite/ld-alpha/emptygot.s b/ld/testsuite/ld-alpha/emptygot.s
new file mode 100644
index 0000000000..ca6887c06a
--- /dev/null
+++ b/ld/testsuite/ld-alpha/emptygot.s
@@ -0,0 +1,7 @@
+ .text
+ .globl _start
+_start:
+ lda $0, foo($29) !gprel
+
+ .section .sbss
+foo: .quad 0