From f6ac7612393b1135113df3295dd277209cd2eb85 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Fri, 8 Jul 2005 06:22:04 +0000 Subject: * ld-cris/pv32.s: Give expobj a size. * ld-cris/pv32-1.d: Update. * ld-alpha/tlsbin.dd: Update for empty section removal change. * ld-alpha/tlsbin.sd: Likewise. * ld-alpha/tlsbin.td: Likewise. * ld-alpha/tlsbinr.dd: Likewise. * ld-alpha/tlsbinr.rd: Likewise. * ld-alpha/tlspic.dd: Likewise. * ld-alpha/tlspic.rd: Likewise. * ld-alpha/tlspic.sd: Likewise. * ld-alpha/tlspic.td: Likewise. * ld-arm/tls-lib.d: Likewise. * ld-arm/tls-lib.r: Likewise. * ld-cris/gotplt2.d: Likewise. * ld-cris/gotplt3.d: Likewise. * ld-cris/hiddef1.d: Likewise. * ld-cris/libdso-10.d: Likewise. * ld-cris/libdso-11.d: Likewise. * ld-cris/libdso-12.d: Likewise. * ld-cris/libdso-14.d: Likewise. * ld-cris/libdso-2.d: Likewise. * ld-i386/tlsnopic.dd: Likewise. * ld-i386/tlsnopic.rd: Likewise. * ld-i386/tlsnopic.sd: Likewise. * ld-i386/tlspic.rd: Likewise. * ld-mmix/bpo-10.d: Likewise. * ld-mmix/bpo-22.d: Likewise. * ld-mmix/sec-7m.d: Likewise. * ld-powerpc/tlsexe.r: Likewise. * ld-powerpc/tlsexetoc.r: Likewise. * ld-powerpc/tlsso.g: Likewise. * ld-powerpc/tlsso.r: Likewise. * ld-powerpc/tlsso32.d: Likewise. * ld-powerpc/tlsso32.g: Likewise. * ld-powerpc/tlsso32.r: Likewise. * ld-powerpc/tlstocso.g: Likewise. * ld-powerpc/tlstocso.r: Likewise. --- ld/testsuite/ld-cris/gotplt2.d | 24 +++++++++---------- ld/testsuite/ld-cris/gotplt3.d | 26 ++++++++++---------- ld/testsuite/ld-cris/hiddef1.d | 2 +- ld/testsuite/ld-cris/libdso-10.d | 22 ++++++++--------- ld/testsuite/ld-cris/libdso-11.d | 18 +++++++------- ld/testsuite/ld-cris/libdso-12.d | 52 ++++++++++++++++++++-------------------- ld/testsuite/ld-cris/libdso-14.d | 6 ++--- ld/testsuite/ld-cris/libdso-2.d | 24 +++++++++---------- ld/testsuite/ld-cris/pv32-1.d | 4 ++-- ld/testsuite/ld-cris/pv32.s | 2 ++ 10 files changed, 90 insertions(+), 90 deletions(-) (limited to 'ld/testsuite/ld-cris') diff --git a/ld/testsuite/ld-cris/gotplt2.d b/ld/testsuite/ld-cris/gotplt2.d index 149b7ea..f8d961e 100644 --- a/ld/testsuite/ld-cris/gotplt2.d +++ b/ld/testsuite/ld-cris/gotplt2.d @@ -16,22 +16,22 @@ DYNAMIC RELOCATION RECORDS OFFSET TYPE VALUE -00002274 R_CRIS_GLOB_DAT dsofn +0000224c R_CRIS_GLOB_DAT dsofn Contents of section .* #... Contents of section \.rela\.got: - 01cc 74220000 0a0b0000 00000000 .* + 01a4 4c220000 0a090000 00000000 .* Contents of section \.text: - 01d8 5f1d0c00 30096f1d 0c000000 30090000 .* - 01e8 6f0d0c00 0000611a 6f3e88df ffff0000 .* + 01b0 5f1d0c00 30096f1d 0c000000 30090000 .* + 01c0 6f0d0c00 0000611a 6f3e88df ffff0000 .* Contents of section \.dynamic: - 21f8 04000000 94000000 05000000 98010000 .* - 2208 06000000 d8000000 0a000000 33000000 .* - 2218 0b000000 10000000 07000000 cc010000 .* - 2228 08000000 0c000000 09000000 0c000000 .* - 2238 00000000 00000000 00000000 00000000 .* - 2248 00000000 00000000 00000000 00000000 .* - 2258 00000000 00000000 00000000 00000000 .* + 21d0 04000000 94000000 05000000 70010000 .* + 21e0 06000000 d0000000 0a000000 33000000 .* + 21f0 0b000000 10000000 07000000 a4010000 .* + 2200 08000000 0c000000 09000000 0c000000 .* + 2210 00000000 00000000 00000000 00000000 .* + 2220 00000000 00000000 00000000 00000000 .* + 2230 00000000 00000000 00000000 00000000 .* Contents of section \.got: - 2268 f8210000 00000000 00000000 00000000 .* + 2240 d0210000 00000000 00000000 00000000 .* diff --git a/ld/testsuite/ld-cris/gotplt3.d b/ld/testsuite/ld-cris/gotplt3.d index 879371e..24893fb 100644 --- a/ld/testsuite/ld-cris/gotplt3.d +++ b/ld/testsuite/ld-cris/gotplt3.d @@ -13,23 +13,23 @@ DYNAMIC RELOCATION RECORDS OFFSET TYPE VALUE -00002278 R_CRIS_GLOB_DAT dsofn +00002250 R_CRIS_GLOB_DAT dsofn Contents of section .* #... Contents of section \.rela\.got: - 01cc 78220000 0a0b0000 00000000 .* + 01a4 50220000 0a090000 00000000 .* Contents of section \.text: - 01d8 5f1d0c00 30096f1d 0c000000 30090000 .* - 01e8 6f0d0c00 0000611a 6f3e84df ffff0000 .* - 01f8 0f050000 .* + 01b0 5f1d0c00 30096f1d 0c000000 30090000 .* + 01c0 6f0d0c00 0000611a 6f3e84df ffff0000 .* + 01d0 0f050000 .* Contents of section \.dynamic: - 21fc 04000000 94000000 05000000 98010000 .* - 220c 06000000 d8000000 0a000000 33000000 .* - 221c 0b000000 10000000 07000000 cc010000 .* - 222c 08000000 0c000000 09000000 0c000000 .* - 223c 00000000 00000000 00000000 00000000 .* - 224c 00000000 00000000 00000000 00000000 .* - 225c 00000000 00000000 00000000 00000000 .* + 21d4 04000000 94000000 05000000 70010000 .* + 21e4 06000000 d0000000 0a000000 33000000 .* + 21f4 0b000000 10000000 07000000 a4010000 .* + 2204 08000000 0c000000 09000000 0c000000 .* + 2214 00000000 00000000 00000000 00000000 .* + 2224 00000000 00000000 00000000 00000000 .* + 2234 00000000 00000000 00000000 00000000 .* Contents of section \.got: - 226c fc210000 00000000 00000000 00000000 .* + 2244 d4210000 00000000 00000000 00000000 .* diff --git a/ld/testsuite/ld-cris/hiddef1.d b/ld/testsuite/ld-cris/hiddef1.d index fd79f92..ff03ab6 100644 --- a/ld/testsuite/ld-cris/hiddef1.d +++ b/ld/testsuite/ld-cris/hiddef1.d @@ -22,7 +22,7 @@ Relocation section '\.rela\.dyn' at offset 0x[0-9a-f]+ contains 1 entries: #... [0-9a-f]+ 0+c R_CRIS_RELATIVE [0-9a-f]+ #... -Symbol table '\.dynsym' contains 9 entries: +Symbol table '\.dynsym' contains 7 entries: #... Symbol table '\.symtab' contains 19 entries: #pass diff --git a/ld/testsuite/ld-cris/libdso-10.d b/ld/testsuite/ld-cris/libdso-10.d index 5bd9439..b63fb82 100644 --- a/ld/testsuite/ld-cris/libdso-10.d +++ b/ld/testsuite/ld-cris/libdso-10.d @@ -9,29 +9,29 @@ Program Header: LOAD off 0x0+ vaddr 0x0+ paddr 0x0+ align 2\*\*13 - filesz 0x0+188 memsz 0x0+188 flags r-x - LOAD off 0x0+188 vaddr 0x0+2188 paddr 0x0+2188 align 2\*\*13 + filesz 0x0+160 memsz 0x0+160 flags r-x + LOAD off 0x0+160 vaddr 0x0+2160 paddr 0x0+2160 align 2\*\*13 filesz 0x0+64 memsz 0x0+64 flags rw- - DYNAMIC off 0x0+188 vaddr 0x0+2188 paddr 0x0+2188 align 2\*\*2 + DYNAMIC off 0x0+160 vaddr 0x0+2160 paddr 0x0+2160 align 2\*\*2 filesz 0x0+58 memsz 0x0+58 flags rw- Dynamic Section: HASH 0x94 - STRTAB 0x15c - SYMTAB 0xcc + STRTAB 0x134 + SYMTAB 0xc4 STRSZ 0x28 SYMENT 0x10 private flags = 2: \[v32\] Sections: Idx Name Size VMA LMA File off Algn - 0 \.hash 0+38 0+94 0+94 0+94 2\*\*2 + 0 \.hash 0+30 0+94 0+94 0+94 2\*\*2 CONTENTS, ALLOC, LOAD, READONLY, DATA - 1 \.dynsym 0+90 0+cc 0+cc 0+cc 2\*\*2 + 1 \.dynsym 0+70 0+c4 0+c4 0+c4 2\*\*2 CONTENTS, ALLOC, LOAD, READONLY, DATA - 2 \.dynstr 0+28 0+15c 0+15c 0+15c 2\*\*0 + 2 \.dynstr 0+28 0+134 0+134 0+134 2\*\*0 CONTENTS, ALLOC, LOAD, READONLY, DATA - 3 \.text 0+4 0+184 0+184 0+184 2\*\*0 + 3 \.text 0+4 0+15c 0+15c 0+15c 2\*\*0 CONTENTS, ALLOC, LOAD, READONLY, CODE - 4 \.dynamic 0+58 0+2188 0+2188 0+188 2\*\*2 + 4 \.dynamic 0+58 0+2160 0+2160 0+160 2\*\*2 CONTENTS, ALLOC, LOAD, DATA - 5 \.got 0+c 0+21e0 0+21e0 0+1e0 2\*\*2 + 5 \.got 0+c 0+21b8 0+21b8 0+1b8 2\*\*2 CONTENTS, ALLOC, LOAD, DATA diff --git a/ld/testsuite/ld-cris/libdso-11.d b/ld/testsuite/ld-cris/libdso-11.d index b172a4a..b7aee18 100644 --- a/ld/testsuite/ld-cris/libdso-11.d +++ b/ld/testsuite/ld-cris/libdso-11.d @@ -8,20 +8,20 @@ DYNAMIC SYMBOL TABLE: #... -0+1e4 g DF \.text 0+8 dsofn3 +0+1bc g DF \.text 0+8 dsofn3 #... -0+1e0 g DF \.text 0+ dsofn +0+1b8 g DF \.text 0+ dsofn #... Contents of section \.rela\.plt: - 01a0 70220000 0b090000 00000000 .* + 0178 48220000 0b070000 00000000 .* Contents of section \.plt: - 01ac 84e20401 7e7a3f7a 04f26ffa bf09b005 .* - 01bc 00000000 00000000 00006f0d 0c000000 .* - 01cc 6ffabf09 b0053f7e 00000000 bf0ed4ff .* - 01dc ffffb005 .* + 0184 84e20401 7e7a3f7a 04f26ffa bf09b005 .* + 0194 00000000 00000000 00006f0d 0c000000 .* + 01a4 6ffabf09 b0053f7e 00000000 bf0ed4ff .* + 01b4 ffffb005 .* Contents of section \.text: - 01e0 b0050000 bfbee2ff ffffb005 .* + 01b8 b0050000 bfbee2ff ffffb005 .* Contents of section \.dynamic: #... Contents of section \.got: - 2264 ec210000 00000000 00000000 d2010000 .* + 223c c4210000 00000000 00000000 aa010000 .* diff --git a/ld/testsuite/ld-cris/libdso-12.d b/ld/testsuite/ld-cris/libdso-12.d index ba9a45c..2266f67 100644 --- a/ld/testsuite/ld-cris/libdso-12.d +++ b/ld/testsuite/ld-cris/libdso-12.d @@ -12,40 +12,40 @@ DYNAMIC SYMBOL TABLE: #... -0+282 g DF \.text 0+12 dsofn4 -0+278 g DF \.text 0+2 expfn -0+2340 g DO \.data 0+ expobj +0+26e g DF \.text 0+12 dsofn4 +0+264 g DF \.text 0+2 expfn +0+232c g DO \.data 0+ expobj #... -0+27a g DF \.text 0+8 dsofn3 +0+266 g DF \.text 0+8 dsofn3 #... 0+ D \*UND\* 0+ dsofn #... Contents of section \.rela\.got: - 0204 3c230000 0a070000 00000000 .* + 01f0 28230000 0a060000 00000000 .* Contents of section \.rela\.plt: - 0210 34230000 0b050000 00000000 38230000 .* - 0220 0b0d0000 00000000 .* + 01fc 20230000 0b040000 00000000 24230000 .* + 020c 0b0c0000 00000000 .* Contents of section \.plt: - 0228 84e20401 7e7a3f7a 04f26ffa bf09b005 .* - 0238 00000000 00000000 00006f0d 0c000000 .* - 0248 6ffabf09 b0053f7e 00000000 bf0ed4ff .* - 0258 ffffb005 6f0d1000 00006ffa bf09b005 .* - 0268 3f7e0c00 0000bf0e baffffff b005 .* + 0214 84e20401 7e7a3f7a 04f26ffa bf09b005 .* + 0224 00000000 00000000 00006f0d 0c000000 .* + 0234 6ffabf09 b0053f7e 00000000 bf0ed4ff .* + 0244 ffffb005 6f0d1000 00006ffa bf09b005 .* + 0254 3f7e0c00 0000bf0e baffffff b005 .* Contents of section \.text: - 0276 b005b005 bfbee2ff ffffb005 7f0da620 .* - 0286 00005f0d 1400bfbe b6ffffff b0050000 .* + 0262 b005b005 bfbee2ff ffffb005 7f0da620 .* + 0272 00005f0d 1400bfbe b6ffffff b0050000 .* Contents of section \.dynamic: - 2298 04000000 94000000 05000000 c0010000 .* - 22a8 06000000 e0000000 0a000000 43000000 .* - 22b8 0b000000 10000000 03000000 28230000 .* - 22c8 02000000 18000000 14000000 07000000 .* - 22d8 17000000 10020000 07000000 04020000 .* - 22e8 08000000 0c000000 09000000 0c000000 .* - 22f8 00000000 00000000 00000000 00000000 .* - 2308 00000000 00000000 00000000 00000000 .* - 2318 00000000 00000000 00000000 00000000 .* + 2284 04000000 94000000 05000000 ac010000 .* + 2294 06000000 dc000000 0a000000 43000000 .* + 22a4 0b000000 10000000 03000000 14230000 .* + 22b4 02000000 18000000 14000000 07000000 .* + 22c4 17000000 fc010000 07000000 f0010000 .* + 22d4 08000000 0c000000 09000000 0c000000 .* + 22e4 00000000 00000000 00000000 00000000 .* + 22f4 00000000 00000000 00000000 00000000 .* + 2304 00000000 00000000 00000000 00000000 .* Contents of section \.got: - 2328 98220000 00000000 00000000 4e020000 .* - 2338 68020000 00000000 .* + 2314 84220000 00000000 00000000 3a020000 .* + 2324 54020000 00000000 .* Contents of section \.data: - 2340 00000000 .* + 232c 00000000 .* diff --git a/ld/testsuite/ld-cris/libdso-14.d b/ld/testsuite/ld-cris/libdso-14.d index 5d9cf51..56574df 100644 --- a/ld/testsuite/ld-cris/libdso-14.d +++ b/ld/testsuite/ld-cris/libdso-14.d @@ -7,11 +7,11 @@ # Checking that a bsr to a non-PLT-decorated nonvisible function # doesn't make the DSO textrel. -Dynamic section at offset 0x1b0 contains 6 entries: +Dynamic section at offset 0x188 contains 6 entries: Tag[ ]+Type[ ]+Name/Value 0x0+4 \(HASH\)[ ]+0x94 - 0x0+5 \(STRTAB\)[ ]+0x170 - 0x0+6 \(SYMTAB\)[ ]+0xd0 + 0x0+5 \(STRTAB\)[ ]+0x148 + 0x0+6 \(SYMTAB\)[ ]+0xc8 0x0+a \(STRSZ\)[ ]+47 \(bytes\) 0x0+b \(SYMENT\)[ ]+16 \(bytes\) 0x0+ \(NULL\)[ ]+0x0 diff --git a/ld/testsuite/ld-cris/libdso-2.d b/ld/testsuite/ld-cris/libdso-2.d index 42852e7..eba390a 100644 --- a/ld/testsuite/ld-cris/libdso-2.d +++ b/ld/testsuite/ld-cris/libdso-2.d @@ -27,16 +27,14 @@ There are 13 section headers.* #... Relocation section '\.rela\.dyn' at offset 0x[0-9a-f]+ contains 1 entries: #... -0000222c 0000000c R_CRIS_RELATIVE 00000184 +00002200 0000000c R_CRIS_RELATIVE 00000158 #... -Symbol table '\.dynsym' contains 6 entries: +Symbol table '\.dynsym' contains 4 entries: Num: Value Size Type Bind Vis Ndx Name 0: 0+ 0 NOTYPE LOCAL DEFAULT UND 1: [0-9a-f]+ 0 SECTION LOCAL DEFAULT 7 - 2: [0-9a-f]+ 0 NOTYPE LOCAL DEFAULT UND - 3: [0-9a-f]+ 0 NOTYPE LOCAL DEFAULT UND - 4: 0+ 0 OBJECT GLOBAL DEFAULT ABS TST1 - 5: 0+188 0 FUNC GLOBAL DEFAULT 7 export_1@@TST1 + 2: 0+ 0 OBJECT GLOBAL DEFAULT ABS TST1 + 3: 0+15c 0 FUNC GLOBAL DEFAULT 7 export_1@@TST1 Symbol table '\.symtab' contains 21 entries: Num: Value Size Type Bind Vis Ndx Name @@ -53,11 +51,11 @@ Symbol table '\.symtab' contains 21 entries: 10: [0-9a-f]+ 0 SECTION LOCAL DEFAULT 10 11: [0-9a-f]+ 0 SECTION LOCAL DEFAULT 11 12: [0-9a-f]+ 0 SECTION LOCAL DEFAULT 12 - 13: 0+2198 0 OBJECT LOCAL DEFAULT ABS _DYNAMIC - 14: 0+2230 0 NOTYPE LOCAL DEFAULT ABS __bss_start - 15: 0+2230 0 NOTYPE LOCAL DEFAULT ABS _edata - 16: 0+2220 0 OBJECT LOCAL HIDDEN ABS _GLOBAL_OFFSET_TABLE_ - 17: 0+2240 0 NOTYPE LOCAL DEFAULT ABS _end - 18: 0+184 0 FUNC LOCAL DEFAULT 7 dsofn + 13: 0+216c 0 OBJECT LOCAL DEFAULT ABS _DYNAMIC + 14: 0+2204 0 NOTYPE LOCAL DEFAULT ABS __bss_start + 15: 0+2204 0 NOTYPE LOCAL DEFAULT ABS _edata + 16: 0+21f4 0 OBJECT LOCAL HIDDEN ABS _GLOBAL_OFFSET_TABLE_ + 17: 0+2220 0 NOTYPE LOCAL DEFAULT ABS _end + 18: 0+158 0 FUNC LOCAL DEFAULT 7 dsofn 19: 0+ 0 OBJECT GLOBAL DEFAULT ABS TST1 - 20: 0+188 0 FUNC GLOBAL DEFAULT 7 export_1 + 20: 0+15c 0 FUNC GLOBAL DEFAULT 7 export_1 diff --git a/ld/testsuite/ld-cris/pv32-1.d b/ld/testsuite/ld-cris/pv32-1.d index d757eb2..9654697 100644 --- a/ld/testsuite/ld-cris/pv32-1.d +++ b/ld/testsuite/ld-cris/pv32-1.d @@ -10,11 +10,11 @@ DYNAMIC SYMBOL TABLE: 0+8228c g DO \*ABS\* 0+ _DYNAMIC 0+8023a DF \*UND\* 0+2 expfn -0+82340 g DO \.bss 0+ expobj +0+82340 g DO \.bss 0+4 expobj 0+82340 g D \*ABS\* 0+ __bss_start 0+80254 DF \*UND\* 0+8 dsofn3 0+82340 g D \*ABS\* 0+ _edata -0+82340 g D \*ABS\* 0+ _end +0+82360 g D \*ABS\* 0+ _end 0+80280 g DF \.text 0+8 dsofn Contents of section \.interp: diff --git a/ld/testsuite/ld-cris/pv32.s b/ld/testsuite/ld-cris/pv32.s index d5ef7c6..d08adef 100644 --- a/ld/testsuite/ld-cris/pv32.s +++ b/ld/testsuite/ld-cris/pv32.s @@ -14,6 +14,8 @@ pfn: .Lfe1: .size pfn,.Lfe1-pfn + .global expobj + .size expobj,4 .global dsofn .type dsofn,@function dsofn: -- cgit v1.1