From c5096a3c51e518393452b94e9d04757f00935266 Mon Sep 17 00:00:00 2001 From: Hans-Peter Nilsson Date: Thu, 14 Mar 2002 10:05:25 +0000 Subject: [PATCH] * gas/mmix/weak1.d, gas/mmix/weak1.d: New test. --- gas/testsuite/ChangeLog | 4 ++++ gas/testsuite/gas/mmix/weak1.d | 23 +++++++++++++++++++++++ gas/testsuite/gas/mmix/weak1.s | 7 +++++++ 3 files changed, 34 insertions(+) create mode 100644 gas/testsuite/gas/mmix/weak1.d create mode 100644 gas/testsuite/gas/mmix/weak1.s diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index 010bbd80aa3..af331951b24 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2002-03-14 Hans-Peter Nilsson + + * gas/mmix/weak1.d, gas/mmix/weak1.d: New test. + 2002-03-05 Paul Koning * gas/pdp11/pdp11.exp: New file. diff --git a/gas/testsuite/gas/mmix/weak1.d b/gas/testsuite/gas/mmix/weak1.d new file mode 100644 index 00000000000..d0696e0c3dc --- /dev/null +++ b/gas/testsuite/gas/mmix/weak1.d @@ -0,0 +1,23 @@ +#as: -x +#objdump: -str + +# Relaxation thought a weak symbol was within reach. + +.*: file format elf64-mmix + +SYMBOL TABLE: +0+ l d \.text 0+ +0+ l d \.data 0+ +0+ l d \.bss 0+ +0+ w \.text 0+ foo +0+4 g \.text 0+ main + +RELOCATION RECORDS FOR \[\.text\]: +OFFSET TYPE VALUE +0+18 R_MMIX_64 foo +0+4 R_MMIX_PUSHJ foo + +Contents of section \.text: + 0000 f8010000 f20f0000 fd000000 fd000000 .* + 0010 fd000000 fd000000 00000000 00000000 .* +Contents of section \.data: diff --git a/gas/testsuite/gas/mmix/weak1.s b/gas/testsuite/gas/mmix/weak1.s new file mode 100644 index 00000000000..f5dbefb3d99 --- /dev/null +++ b/gas/testsuite/gas/mmix/weak1.s @@ -0,0 +1,7 @@ + .weak foo +foo: + POP 1,0 + .global main +main: + PUSHJ $15,foo + .quad foo -- 2.30.2