From 00f7efb6ccc0e31cece4ef606c7e796b4605a26d Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Thu, 28 Nov 2002 14:15:55 +0000 Subject: * symbols.c (S_SET_THREAD_LOCAL): New function. * symbols.h (S_SET_THREAD_LOCAL): New prototype. * config/tc-i386.c (md_apply_fix3): Call S_SET_THREAD_LOCAL for TLS relocations. * config/tc-ia64.c (md_apply_fix3): Likewise. * config/tc-alpha.c (md_apply_fix3): Likewise. * ld-i386/tlsnopic.rd: Change NOTYPE to TLS for UND sg* symbols. --- ld/testsuite/ChangeLog | 4 ++++ ld/testsuite/ld-i386/tlsnopic.rd | 20 ++++++++++---------- 2 files changed, 14 insertions(+), 10 deletions(-) (limited to 'ld') diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog index 27a09ff..0d835d4 100644 --- a/ld/testsuite/ChangeLog +++ b/ld/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2002-11-28 Jakub Jelinek + + * ld-i386/tlsnopic.rd: Change NOTYPE to TLS for UND sg* symbols. + 2002-11-28 Kaz Kojima * ld-sh/refdbg-0-dso.d: New test. diff --git a/ld/testsuite/ld-i386/tlsnopic.rd b/ld/testsuite/ld-i386/tlsnopic.rd index 3c6f372..5ac242c 100644 --- a/ld/testsuite/ld-i386/tlsnopic.rd +++ b/ld/testsuite/ld-i386/tlsnopic.rd @@ -84,13 +84,13 @@ Symbol table '.dynsym' contains 22 entries: +9: [0-9a-f]+ +0 SECTION LOCAL DEFAULT +9 * +10: [0-9a-f]+ +0 SECTION LOCAL DEFAULT +10 * +11: [0-9a-f]+ +0 OBJECT GLOBAL DEFAULT ABS _DYNAMIC - +12: 0+ +0 NOTYPE GLOBAL DEFAULT UND sg3 - +13: 0+ +0 NOTYPE GLOBAL DEFAULT UND sg4 + +12: 0+ +0 TLS +GLOBAL DEFAULT UND sg3 + +13: 0+ +0 TLS +GLOBAL DEFAULT UND sg4 +14: 0+1000 +0 FUNC +GLOBAL DEFAULT +5 fn3 - +15: 0+ +0 NOTYPE GLOBAL DEFAULT UND sg5 - +16: 0+ +0 NOTYPE GLOBAL DEFAULT UND sg1 + +15: 0+ +0 TLS +GLOBAL DEFAULT UND sg5 + +16: 0+ +0 TLS +GLOBAL DEFAULT UND sg1 +17: [0-9a-f]+ +0 NOTYPE GLOBAL DEFAULT ABS __bss_start - +18: 0+ +0 NOTYPE GLOBAL DEFAULT UND sg2 + +18: 0+ +0 TLS +GLOBAL DEFAULT UND sg2 +19: [0-9a-f]+ +0 NOTYPE GLOBAL DEFAULT ABS _edata +20: 0+2080 +0 OBJECT GLOBAL DEFAULT ABS _GLOBAL_OFFSET_TABLE_ +21: [0-9a-f]+ +0 NOTYPE GLOBAL DEFAULT ABS _end @@ -121,13 +121,13 @@ Symbol table '.symtab' contains 34 entries: +21: 0+14 +0 TLS +LOCAL HIDDEN +7 sh1 +22: 0+18 +0 TLS +LOCAL HIDDEN +7 sh2 +23: [0-9a-f]+ +0 OBJECT GLOBAL DEFAULT ABS _DYNAMIC - +24: 0+ +0 NOTYPE GLOBAL DEFAULT UND sg3 - +25: 0+ +0 NOTYPE GLOBAL DEFAULT UND sg4 + +24: 0+ +0 TLS +GLOBAL DEFAULT UND sg3 + +25: 0+ +0 TLS +GLOBAL DEFAULT UND sg4 +26: 0+1000 +0 FUNC +GLOBAL DEFAULT +5 fn3 - +27: 0+ +0 NOTYPE GLOBAL DEFAULT UND sg5 - +28: 0+ +0 NOTYPE GLOBAL DEFAULT UND sg1 + +27: 0+ +0 TLS +GLOBAL DEFAULT UND sg5 + +28: 0+ +0 TLS +GLOBAL DEFAULT UND sg1 +29: [0-9a-f]+ +0 NOTYPE GLOBAL DEFAULT ABS __bss_start - +30: 0+ +0 NOTYPE GLOBAL DEFAULT UND sg2 + +30: 0+ +0 TLS +GLOBAL DEFAULT UND sg2 +31: [0-9a-f]+ +0 NOTYPE GLOBAL DEFAULT ABS _edata +32: 0+2080 +0 OBJECT GLOBAL DEFAULT ABS _GLOBAL_OFFSET_TABLE_ +33: [0-9a-f]+ +0 NOTYPE GLOBAL DEFAULT ABS _end -- cgit v1.1