From 465e2c43ad8492bf2a50771ba74e6d1c39160580 Mon Sep 17 00:00:00 2001 From: Hans-Peter Nilsson Date: Mon, 16 Jun 2008 15:07:01 +0000 Subject: [PATCH] PR gas/6607 * ld-mmix/loc10.d, ld-mmix/loc10.s, ld-mmix/loc10m.d, ld-mmix/loc8.d, ld-mmix/loc8.s, ld-mmix/loc8m.d, ld-mmix/loc9.d, ld-mmix/loc9.s, ld-mmix/loc9m.d: New tests. --- ld/testsuite/ChangeLog | 7 +++++++ ld/testsuite/ld-mmix/loc10.d | 13 +++++++++++++ ld/testsuite/ld-mmix/loc10.s | 1 + ld/testsuite/ld-mmix/loc10m.d | 10 ++++++++++ ld/testsuite/ld-mmix/loc8.d | 13 +++++++++++++ ld/testsuite/ld-mmix/loc8.s | 3 +++ ld/testsuite/ld-mmix/loc8m.d | 10 ++++++++++ ld/testsuite/ld-mmix/loc9.d | 13 +++++++++++++ ld/testsuite/ld-mmix/loc9.s | 3 +++ ld/testsuite/ld-mmix/loc9m.d | 14 ++++++++++++++ 10 files changed, 87 insertions(+) create mode 100644 ld/testsuite/ld-mmix/loc10.d create mode 100644 ld/testsuite/ld-mmix/loc10.s create mode 100644 ld/testsuite/ld-mmix/loc10m.d create mode 100644 ld/testsuite/ld-mmix/loc8.d create mode 100644 ld/testsuite/ld-mmix/loc8.s create mode 100644 ld/testsuite/ld-mmix/loc8m.d create mode 100644 ld/testsuite/ld-mmix/loc9.d create mode 100644 ld/testsuite/ld-mmix/loc9.s create mode 100644 ld/testsuite/ld-mmix/loc9m.d diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog index 5f774b2..4b36184 100644 --- a/ld/testsuite/ChangeLog +++ b/ld/testsuite/ChangeLog @@ -1,3 +1,10 @@ +2008-06-16 Hans-Peter Nilsson + + PR gas/6607 + * ld-mmix/loc10.d, ld-mmix/loc10.s, ld-mmix/loc10m.d, ld-mmix/loc8.d, + ld-mmix/loc8.s, ld-mmix/loc8m.d, ld-mmix/loc9.d, ld-mmix/loc9.s, + ld-mmix/loc9m.d: New tests. + 2008-06-12 Nick Clifton * ld-scripts/overlay-size.t (end_of_bss_overlays): Define. diff --git a/ld/testsuite/ld-mmix/loc10.d b/ld/testsuite/ld-mmix/loc10.d new file mode 100644 index 0000000..84180b4 --- /dev/null +++ b/ld/testsuite/ld-mmix/loc10.d @@ -0,0 +1,13 @@ +#ld: -m elf64mmix --defsym __.MMIX.start..text=0x8000000000000000 +#objdump: -str + +# Setting file start through the special symbol. + +.*: file format elf64-mmix + +SYMBOL TABLE: +#... +8000000000000000 g \*ABS\* 0+ __\.MMIX\.start\.\.text +#... +Contents of section \.text: + 8000000000000000 f4000000 .* diff --git a/ld/testsuite/ld-mmix/loc10.s b/ld/testsuite/ld-mmix/loc10.s new file mode 100644 index 0000000..3d139d3 --- /dev/null +++ b/ld/testsuite/ld-mmix/loc10.s @@ -0,0 +1 @@ +Boot GETA $0,Boot %set dynamic- and forced-trap handler diff --git a/ld/testsuite/ld-mmix/loc10m.d b/ld/testsuite/ld-mmix/loc10m.d new file mode 100644 index 0000000..509f151 --- /dev/null +++ b/ld/testsuite/ld-mmix/loc10m.d @@ -0,0 +1,10 @@ +#source: loc10.s +#ld: -m mmo --defsym __.MMIX.start..text=0x8000000000000000 +#objdump: -str + +# Setting file start through the special symbol, mmo version. + +.*: file format mmo +#... +Contents of section \.text: + 8000000000000000 f4000000 .* diff --git a/ld/testsuite/ld-mmix/loc8.d b/ld/testsuite/ld-mmix/loc8.d new file mode 100644 index 0000000..ac68990 --- /dev/null +++ b/ld/testsuite/ld-mmix/loc8.d @@ -0,0 +1,13 @@ +#ld: -m elf64mmix +#objdump: -str + +# Setting file start through the special symbol, in-source. + +.*: file format elf64-mmix + +SYMBOL TABLE: +#... +8000000000000000 g \*ABS\* 0+ __\.MMIX\.start\.\.text +#... +Contents of section \.text: + 8000000000000000 f4000000 .* diff --git a/ld/testsuite/ld-mmix/loc8.s b/ld/testsuite/ld-mmix/loc8.s new file mode 100644 index 0000000..28592f9 --- /dev/null +++ b/ld/testsuite/ld-mmix/loc8.s @@ -0,0 +1,3 @@ + .globl __.MMIX.start..text + .set __.MMIX.start..text,0x8000000000000000 +Boot GETA $0,Boot %set dynamic- and forced-trap handler diff --git a/ld/testsuite/ld-mmix/loc8m.d b/ld/testsuite/ld-mmix/loc8m.d new file mode 100644 index 0000000..52fb079 --- /dev/null +++ b/ld/testsuite/ld-mmix/loc8m.d @@ -0,0 +1,10 @@ +#source: loc8.s +#ld: -m mmo +#objdump: -str + +# Setting file start through the special symbol, in-source, mmo version. + +.*: file format mmo +#... +Contents of section \.text: + 8000000000000000 f4000000 .* diff --git a/ld/testsuite/ld-mmix/loc9.d b/ld/testsuite/ld-mmix/loc9.d new file mode 100644 index 0000000..458fef6 --- /dev/null +++ b/ld/testsuite/ld-mmix/loc9.d @@ -0,0 +1,13 @@ +#ld: -m elf64mmix +#objdump: -str + +# Setting file start through the LOC pseudo, see PR 6607. + +.*: file format elf64-mmix + +SYMBOL TABLE: +#... +8000000000000000 g \*ABS\* 0+ __\.MMIX\.start\.\.text +#... +Contents of section \.text: + 8000000000000000 f4000000 .* diff --git a/ld/testsuite/ld-mmix/loc9.s b/ld/testsuite/ld-mmix/loc9.s new file mode 100644 index 0000000..99a5c5d --- /dev/null +++ b/ld/testsuite/ld-mmix/loc9.s @@ -0,0 +1,3 @@ + LOC #8000000000000000 +Boot GETA $0,Boot %set dynamic- and forced-trap handler + .globl Boot diff --git a/ld/testsuite/ld-mmix/loc9m.d b/ld/testsuite/ld-mmix/loc9m.d new file mode 100644 index 0000000..be2beff --- /dev/null +++ b/ld/testsuite/ld-mmix/loc9m.d @@ -0,0 +1,14 @@ +#source: loc9.s +#ld: -e Boot -m mmo +#objdump: -str + +# Setting file start through the LOC pseudo, see PR 6607, mmo version. + +.*: file format mmo + +SYMBOL TABLE: +#... +8000000000000000 g \.text Boot +#... +Contents of section \.text: + 8000000000000000 f4000000 .* -- 2.7.4