diff options
author | Jakub Jelinek <jakub@redhat.com> | 2003-01-17 23:27:57 +0000 |
---|---|---|
committer | Jakub Jelinek <jakub@redhat.com> | 2003-01-17 23:27:57 +0000 |
commit | a823975ae077d7977f892c6ae43cdce7ecc75537 (patch) | |
tree | aaf81987ca50070ffa5a1c43b05b2f66719c34d7 /ld/testsuite/ld-ia64/tlspic1.s | |
parent | 0bcc87e7c5b5b8849718f747817a265d59cb1fa5 (diff) | |
download | gdb-a823975ae077d7977f892c6ae43cdce7ecc75537.zip gdb-a823975ae077d7977f892c6ae43cdce7ecc75537.tar.gz gdb-a823975ae077d7977f892c6ae43cdce7ecc75537.tar.bz2 |
* elfxx-ia64.c (elfNN_ia64_relocate_section): Handle
R_IA64_TPREL64[LM]SB against non-global symbol properly.
* ld-ia64/tlspic1.s: Add tests for IE in shared libraries.
* ld-ia64/tlspic.rd: Adjust.
* ld-ia64/tlspic.dd: Adjust.
* ld-ia64/tlspic.sd: Adjust.
Diffstat (limited to 'ld/testsuite/ld-ia64/tlspic1.s')
-rw-r--r-- | ld/testsuite/ld-ia64/tlspic1.s | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/ld/testsuite/ld-ia64/tlspic1.s b/ld/testsuite/ld-ia64/tlspic1.s index 3b10117..8465607 100644 --- a/ld/testsuite/ld-ia64/tlspic1.s +++ b/ld/testsuite/ld-ia64/tlspic1.s @@ -88,6 +88,25 @@ fn1: add r15 = r15, r8 ;; + /* IE against global */ + addl r14 = @ltoff(@tprel(sg2#)), gp + ;; + ld8 r15 = [r14] + ;; + add r14 = r15, r13 + ;; + + /* IE against local and hidden */ + addl r14 = @ltoff(@tprel(sl2#)), gp + addl r15 = @ltoff(@tprel(sh2#)), gp + ;; + ld8 r14 = [r14] + ld8 r15 = [r15] + ;; + add r14 = r14, r13 + add r15 = r15, r13 + ;; + mov ar.pfs = r34 mov b0 = r33 br.ret.sptk.many b0 |