diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog index 5f774b20e4d..4b36184e1d2 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 00000000000..84180b4947e --- /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 00000000000..3d139d33092 --- /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 00000000000..509f151ee96 --- /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 00000000000..ac68990aefe --- /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 00000000000..28592f98ee7 --- /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 00000000000..52fb079936d --- /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 00000000000..458fef6188e --- /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 00000000000..99a5c5d60c4 --- /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 00000000000..be2beffa468 --- /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 .*