From: Hans-Peter Nilsson Date: Mon, 10 Sep 2012 10:15:26 +0000 (+0000) Subject: * ld-mmix/sec-1.d, ld-mmix/sec-3.d: Force end-of-section symbols X-Git-Tag: binutils-2_23~61 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=db63762322f7de881882a0f7c72ee44de1d0d289;p=thirdparty%2Fbinutils-gdb.git * ld-mmix/sec-1.d, ld-mmix/sec-3.d: Force end-of-section symbols to be emitted and checked. * ld-mmix/data-1.s, ld-mmix/orph-.d, ld-mmix/orph-awp.d, ld-mmix/orph-d-a.d, ld-mmix/orph-d-awn.d, ld-mmix/orph-d-awp.d, ld-mmix/orph-d-awpe.d, ld-mmix/orph-d.d, ld-mmix/orph-dc-ap.d, ld-mmix/orph-dc-awp.d, ld-mmix/orph-dc.d, ld-mmix/tm-ae.s, ld-mmix/tm-ape.s, ld-mmix/tm-awne.s, ld-mmix/tm-awpe.s, ld-mmix/tm-d-ap.s, ld-mmix/tm-d-awp.s, ld-mmix/tm-d.s, ld-mmix/tm-e.s, ld-mmix/tm-orph1.s: New test files. --- diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog index b9abfbd8e33..6623c409717 100644 --- a/ld/testsuite/ChangeLog +++ b/ld/testsuite/ChangeLog @@ -1,3 +1,15 @@ +2012-09-10 Hans-Peter Nilsson + + * ld-mmix/sec-1.d, ld-mmix/sec-3.d: Force end-of-section symbols + to be emitted and checked. + * ld-mmix/data-1.s, ld-mmix/orph-.d, ld-mmix/orph-awp.d, + ld-mmix/orph-d-a.d, ld-mmix/orph-d-awn.d, ld-mmix/orph-d-awp.d, + ld-mmix/orph-d-awpe.d, ld-mmix/orph-d.d, ld-mmix/orph-dc-ap.d, + ld-mmix/orph-dc-awp.d, ld-mmix/orph-dc.d, ld-mmix/tm-ae.s, + ld-mmix/tm-ape.s, ld-mmix/tm-awne.s, ld-mmix/tm-awpe.s, + ld-mmix/tm-d-ap.s, ld-mmix/tm-d-awp.s, ld-mmix/tm-d.s, + ld-mmix/tm-e.s, ld-mmix/tm-orph1.s: New test files. + 2012-08-28 Maciej W. Rozycki * ld-elf/export-class.sd: New test. diff --git a/ld/testsuite/ld-mmix/sec-1.d b/ld/testsuite/ld-mmix/sec-1.d index eab62a2f03a..5e31b3fd645 100644 --- a/ld/testsuite/ld-mmix/sec-1.d +++ b/ld/testsuite/ld-mmix/sec-1.d @@ -1,8 +1,8 @@ #source: sec-1.s #source: start.s -#ld: -m elf64mmix +#ld: -m elf64mmix -u _etext -u _edata -u _end #objcopy_linked_file: -O mmo -#objdump: -sh +#objdump: -sht # Test conversion from ELF to mmo with non-mmo-sections present, # testing that support. @@ -21,6 +21,15 @@ Idx Name Size VMA LMA File off Algn CONTENTS, ALLOC, LOAD, DATA 4 thirdsec 0+a 0+ 0+ 0+ 2\*\*2 CONTENTS, READONLY + +SYMBOL TABLE: +#... +0+1d g +\*ABS\* _etext +#... +2000000000000013 g +\*ABS\* __bss_start +2000000000000013 g +\*ABS\* _edata +2000000000000018 g +\*ABS\* _end + Contents of section \.text: 0000 e3fd0001 .* Contents of section secname: diff --git a/ld/testsuite/ld-mmix/sec-3.d b/ld/testsuite/ld-mmix/sec-3.d index 791b5ea2aa1..290052b99eb 100644 --- a/ld/testsuite/ld-mmix/sec-3.d +++ b/ld/testsuite/ld-mmix/sec-3.d @@ -1,8 +1,8 @@ #source: sec-1.s #source: start.s #source: data1.s -#ld: -m mmo -#objdump: -sh +#ld: -m mmo -u __etext -u __Sdata -u __Edata -u __Sbss -u __Ebss -u __Eall +#objdump: -sht .*: file format mmo @@ -20,6 +20,17 @@ Idx Name Size VMA LMA File off Algn CONTENTS, ALLOC, LOAD, DATA 5 thirdsec 0+a 0+ 0+ 0+ 2\*\*2 CONTENTS, READONLY + +SYMBOL TABLE: +#... +0+30 g +\*ABS\* __etext +200000000000001c g +\*ABS\* __Ebss +200000000000001b g +\*ABS\* __Edata +#... +200000000000001c g +\*ABS\* __Eall +20+ g +\.data __Sdata +200000000000001c g +\*ABS\* __Sbss + Contents of section \.text: 0000 e3fd0001 .* Contents of section secname: