* config/tc-mep.h (DIFF_EXPR_OK): Do not define.

* gas/all/gas.exp: Expect forward test to fail for MeP.
        Expect relax test to fail for MeP.
        * gas/mep/relocs.d: Update expected disassembly.

        * lib/ld-lib.exp (check_gc_sections_available): Add MeP to list of
        targets which do not support garbage collection.
        * ld-srec/srec.exp (run_srec_test): Expect tests to fail for MeP.
        * ld-elf/group8a.d: Likewise.
        * ld-elf/group8b.d: Likewise.
        * ld-elf/group9a.d: Likewise.
        * ld-elf/group9b.d: Likewise.

        * binutils-all/objdump.W: Do not assume that high and low PC
        addresses will have been computed.
This commit is contained in:
Nick Clifton 2009-01-29 09:03:13 +00:00
parent 4a6bc624b3
commit ec0c103cff
15 changed files with 49 additions and 21 deletions

View File

@ -1,3 +1,8 @@
2009-01-29 Nick Clifton <nickc@redhat.com>
* binutils-all/objdump.W: Do not assume that high and low PC
addresses will have been computed.
2008-10-06 Tom Tromey <tromey@redhat.com> 2008-10-06 Tom Tromey <tromey@redhat.com>
* binutils-all/objdump.W: Update. * binutils-all/objdump.W: Update.

View File

@ -10,8 +10,8 @@ Contents of the .debug_info section:
Pointer Size: 4 Pointer Size: 4
<0><b>: Abbrev Number: 1 \(DW_TAG_compile_unit\) <0><b>: Abbrev Number: 1 \(DW_TAG_compile_unit\)
< c> DW_AT_stmt_list : 0x0 < c> DW_AT_stmt_list : 0x0
<10> DW_AT_high_pc : 0x8 <10> DW_AT_high_pc : 0x.
<14> DW_AT_low_pc : 0x4 <14> DW_AT_low_pc : 0x.
<18> DW_AT_name : file1.txt <18> DW_AT_name : file1.txt
<22> DW_AT_producer : GNU C 3.3.3 <22> DW_AT_producer : GNU C 3.3.3
<2e> DW_AT_language : 1 \(ANSI C\) <2e> DW_AT_language : 1 \(ANSI C\)
@ -21,8 +21,8 @@ Contents of the .debug_info section:
<32> DW_AT_decl_line : 2 <32> DW_AT_decl_line : 2
<33> DW_AT_name : func_cu1 <33> DW_AT_name : func_cu1
<3c> DW_AT_type : <0x4a> <3c> DW_AT_type : <0x4a>
<40> DW_AT_low_pc : 0x4 <40> DW_AT_low_pc : 0x.
<44> DW_AT_high_pc : 0x8 <44> DW_AT_high_pc : 0x.
<48> DW_AT_frame_base : 1 byte block: 55 \(DW_OP_reg5\) <48> DW_AT_frame_base : 1 byte block: 55 \(DW_OP_reg5\)
<1><4a>: Abbrev Number: 3 \(DW_TAG_base_type\) <1><4a>: Abbrev Number: 3 \(DW_TAG_base_type\)
<4b> DW_AT_name : int <4b> DW_AT_name : int

View File

@ -1,3 +1,7 @@
2009-01-29 Nick Clifton <nickc@redhat.com>
* config/tc-mep.h (DIFF_EXPR_OK): Do not define.
2009-01-29 Nathan Sidwell <nathan@codesourcery.com> 2009-01-29 Nathan Sidwell <nathan@codesourcery.com>
Catherine Moore <clm@codesourcery.com? Catherine Moore <clm@codesourcery.com?

View File

@ -1,5 +1,5 @@
/* tc-mep.h -- Header file for tc-mep.c. /* tc-mep.h -- Header file for tc-mep.c.
Copyright (C) 2001, 2002, 2005, 2007 Free Software Foundation, Inc. Copyright (C) 2001, 2002, 2005, 2007, 2009 Free Software Foundation, Inc.
This file is part of GAS, the GNU Assembler. This file is part of GAS, the GNU Assembler.
@ -39,8 +39,7 @@
/* Permit temporary numeric labels. */ /* Permit temporary numeric labels. */
#define LOCAL_LABELS_FB 1 #define LOCAL_LABELS_FB 1
/* .-foo gets turned into PC relative relocs. */ /* Do not define DIFF_EXPR_OK - the MeP does not have a 32-bit PC-relative reloc. */
#define DIFF_EXPR_OK
/* We don't need to handle .word strangely. */ /* We don't need to handle .word strangely. */
#define WORKING_DOT_WORD #define WORKING_DOT_WORD

View File

@ -1,3 +1,9 @@
2009-01-29 Nick Clifton <nickc@redhat.com>
* gas/all/gas.exp: Expect forward test to fail for MeP.
Expect relax test to fail for MeP.
* gas/mep/relocs.d: Update expected disassembly.
2009-01-27 Nick Clifton <nickc@redhat.com> 2009-01-27 Nick Clifton <nickc@redhat.com>
* gas/arm/attr-cpu-directive.d: Only run test for EABI targets. * gas/arm/attr-cpu-directive.d: Only run test for EABI targets.

View File

@ -65,12 +65,13 @@ gas_test_error "assign-bad.s" "" "== assignment for symbol already set"
# .equ works differently on some targets. # .equ works differently on some targets.
# linkrelax-ing prevents most forward references from working. # linkrelax-ing prevents most forward references from working.
case $target_triplet in { case $target_triplet in {
{ *c54x*-*-* } { }
{ cr16*-*-* } { } { cr16*-*-* } { }
{ crx*-*-* } { } { crx*-*-* } { }
{ h8300*-*-* } { } { h8300*-*-* } { }
{ hppa*-*-* } { } { hppa*-*-* } { }
{ mep-*-* } { }
{ mn10\[23\]00*-*-* } { } { mn10\[23\]00*-*-* } { }
{ *c54x*-*-* } { }
default { default {
# Some targets don't manage to resolve BFD_RELOC_8 for constants. # Some targets don't manage to resolve BFD_RELOC_8 for constants.
setup_xfail "alpha*-*-*" "avr-*-*" "*c30*-*-*" "*c4x*-*-*" \ setup_xfail "alpha*-*-*" "avr-*-*" "*c30*-*-*" "*c4x*-*-*" \
@ -309,7 +310,8 @@ run_dump_test sleb128
# .byte is 32 bits on tic4x, and .p2align isn't supported on tic54x # .byte is 32 bits on tic4x, and .p2align isn't supported on tic54x
# .space is different on hppa*-hpux. # .space is different on hppa*-hpux.
if { ![istarget "tic4x*-*-*"] && ![istarget "tic54x*-*-*"] && ![istarget "hppa*-*-hpux*"] } { # MeP put bytes into packets.
if { ![istarget "tic4x*-*-*"] && ![istarget "tic54x*-*-*"] && ![istarget "hppa*-*-hpux*"] && ![istarget "mep*-*-*"] } {
run_dump_test relax run_dump_test relax
} }

View File

@ -55,8 +55,8 @@ Disassembly of section .text:
102e: 00 00 nop 102e: 00 00 nop
1030: 00 00 nop 1030: 00 00 nop
1032: c5 3c 10 12 lb \$5,4114\(\$3\) 1032: c5 3c 10 12 lb \$5,4114\(\$3\)
1036: de e9 ff ff bsr 1012 <&:s3:foo:s3:bar> 1036: de e9 ff ff bsr 1012 <foo>
103a: e5 09 ff ec repeat \$5,1012 <&:s3:foo:s3:bar> 103a: e5 09 ff ec repeat \$5,1012 <foo>
103e: 00 00 nop 103e: 00 00 nop
1040: 00 00 nop 1040: 00 00 nop
1042: c5 3c ef ee lb \$5,-4114\(\$3\) 1042: c5 3c ef ee lb \$5,-4114\(\$3\)
@ -79,7 +79,7 @@ Disassembly of section .text:
1082: d8 28 00 00 jmp 4 <__assert_based_size\+0x3> 1082: d8 28 00 00 jmp 4 <__assert_based_size\+0x3>
1086: d8 48 00 00 jmp 8 <\^:s3:foo:s3:bar> 1086: d8 48 00 00 jmp 8 <\^:s3:foo:s3:bar>
108a: d8 d8 00 10 jmp 101a <|:s3:foo:s3:bar> 108a: d8 d8 00 10 jmp 101a <|:s3:foo:s3:bar>
108e: d8 98 00 10 jmp 1012 <&:s3:foo:s3:bar> 108e: d8 98 00 10 jmp 1012 <foo>
1092: d8 08 00 00 jmp 0 <<<:==:s3:foo:s3:bar:#0+05> 1092: d8 08 00 00 jmp 0 <<<:==:s3:foo:s3:bar:#0+05>
1096: d9 08 00 00 jmp 20 <<<:&&:s3:foo:s3:bar:#0+05> 1096: d9 08 00 00 jmp 20 <<<:&&:s3:foo:s3:bar:#0+05>
109a: d9 08 00 00 jmp 20 <<<:&&:s3:foo:s3:bar:#0+05> 109a: d9 08 00 00 jmp 20 <<<:&&:s3:foo:s3:bar:#0+05>

View File

@ -1,3 +1,13 @@
2009-01-29 Nick Clifton <nickc@redhat.com>
* lib/ld-lib.exp (check_gc_sections_available): Add MeP to list of
targets which do not support garbage collection.
* ld-srec/srec.exp (run_srec_test): Expect tests to fail for MeP.
* ld-elf/group8a.d: Likewise.
* ld-elf/group8b.d: Likewise.
* ld-elf/group9a.d: Likewise.
* ld-elf/group9b.d: Likewise.
2009-01-27 Hans-Peter Nilsson <hp@axis.com> 2009-01-27 Hans-Peter Nilsson <hp@axis.com>
* ld-cris/tls-tbss64.s, ld-cris/tls-e-80.d: New test. * ld-cris/tls-tbss64.s, ld-cris/tls-e-80.d: New test.

View File

@ -1,7 +1,7 @@
#source: group8.s #source: group8.s
#ld: -r --gc-sections --entry foo #ld: -r --gc-sections --entry foo
#readelf: -g --wide #readelf: -g --wide
#notarget: ia64-*-* #notarget: ia64-*-* mep-*-*
COMDAT group section \[[ 0-9]+\] `.group' \[foo\] contains 1 sections: COMDAT group section \[[ 0-9]+\] `.group' \[foo\] contains 1 sections:
\[Index\] Name \[Index\] Name

View File

@ -1,7 +1,7 @@
#source: group8.s #source: group8.s
#ld: -r --gc-sections --entry bar #ld: -r --gc-sections --entry bar
#readelf: -g --wide #readelf: -g --wide
#notarget: ia64-*-* #notarget: ia64-*-* mep-*-*
COMDAT group section \[[ 0-9]+\] `.group' \[bar\] contains 1 sections: COMDAT group section \[[ 0-9]+\] `.group' \[bar\] contains 1 sections:
\[Index\] Name \[Index\] Name

View File

@ -1,7 +1,7 @@
#source: group9.s #source: group9.s
#ld: -r --gc-sections --entry foo #ld: -r --gc-sections --entry foo
#readelf: -g --wide #readelf: -g --wide
#notarget: ia64-*-* #notarget: ia64-*-* mep-*-*
COMDAT group section \[[ 0-9]+\] `.group' \[foo\] contains 2 sections: COMDAT group section \[[ 0-9]+\] `.group' \[foo\] contains 2 sections:
\[Index\] Name \[Index\] Name

View File

@ -1,7 +1,7 @@
#source: group9.s #source: group9.s
#ld: -r --gc-sections --entry bar #ld: -r --gc-sections --entry bar
#readelf: -g --wide #readelf: -g --wide
#notarget: ia64-*-* #notarget: ia64-*-* mep-*-*
COMDAT group section \[[ 0-9]+\] `.group' \[foo\] contains 2 sections: COMDAT group section \[[ 0-9]+\] `.group' \[foo\] contains 2 sections:
\[Index\] Name \[Index\] Name

View File

@ -4,7 +4,7 @@
#xfail: "arc-*-*" "avr-*-*" "bfin-*-*" "cris*-*-*" "crx-*-*" "d10v-*-*" "d30v-*-*" #xfail: "arc-*-*" "avr-*-*" "bfin-*-*" "cris*-*-*" "crx-*-*" "d10v-*-*" "d30v-*-*"
#xfail: "dlx-*-*" "fr30-*-*" "frv-*-*" "hppa*-*-*" "h8300-*-*" "score-*-*" #xfail: "dlx-*-*" "fr30-*-*" "frv-*-*" "hppa*-*-*" "h8300-*-*" "score-*-*"
#xfail: "i370-*-*" "i860-*-*" "i960-*-*" "ip2k-*-*" "iq2000-*-*" "lm32-*-*" #xfail: "i370-*-*" "i860-*-*" "i960-*-*" "ip2k-*-*" "iq2000-*-*" "lm32-*-*"
#xfail: "mcore-*-*" "mn102*-*-*" "mips*-*-*" "ms1-*-*" "msp430-*-*" #xfail: "mcore-*-*" "mn102*-*-*" "mips*-*-*" "ms1-*-*" "msp430-*-*" "mep-*-*"
#xfail: "or32-*-*" "pj-*-*" "sparc*-*-*" "vax-*-*" "xstormy16-*-*" "xtensa*-*-*" #xfail: "or32-*-*" "pj-*-*" "sparc*-*-*" "vax-*-*" "xstormy16-*-*" "xtensa*-*-*"
.*: file format .*elf.* .*: file format .*elf.*

View File

@ -1,6 +1,6 @@
# Test linking directly to S-records. # Test linking directly to S-records.
# By Ian Lance Taylor, Cygnus Support. # By Ian Lance Taylor, Cygnus Support.
# Copyright 1999, 2000, 2001, 2002, 2003, 2006, 2007 # Copyright 1999, 2000, 2001, 2002, 2003, 2006, 2007, 2009
# Free Software Foundation, Inc. # Free Software Foundation, Inc.
# #
# This file is part of the GNU Binutils. # This file is part of the GNU Binutils.
@ -383,7 +383,8 @@ setup_xfail "alpha*-*-elf*" "alpha*-*-linux-*" "alpha*-*-gnu*"
setup_xfail "alpha*-*-netbsd*" setup_xfail "alpha*-*-netbsd*"
# The S-record linker hasn't any hope of coping with HPPA relocs. # The S-record linker hasn't any hope of coping with HPPA relocs.
setup_xfail "hppa*-*-*" # Or MeP complex relocs.
setup_xfail "hppa*-*-*" "mep-*-*"
# The S-record linker doesn't handle IA64 Elf relaxation. # The S-record linker doesn't handle IA64 Elf relaxation.
setup_xfail "ia64-*-*" setup_xfail "ia64-*-*"
@ -420,7 +421,7 @@ setup_xfail "thumb-*-*"
setup_xfail "v850*-*-elf" setup_xfail "v850*-*-elf"
setup_xfail "alpha*-*-elf*" "alpha*-*-linux-*" "alpha*-*-gnu*" setup_xfail "alpha*-*-elf*" "alpha*-*-linux-*" "alpha*-*-gnu*"
setup_xfail "alpha*-*-netbsd*" setup_xfail "alpha*-*-netbsd*"
setup_xfail "hppa*-*-*" setup_xfail "hppa*-*-*" "mep-*-*"
setup_xfail "ia64-*-*" setup_xfail "ia64-*-*"
setup_xfail "*-*-cygwin*" "*-*-mingw*" "*-*-pe*" "*-*-winnt*" setup_xfail "*-*-cygwin*" "*-*-mingw*" "*-*-pe*" "*-*-winnt*"
setup_xfail "score-*-*" setup_xfail "score-*-*"

View File

@ -1,6 +1,6 @@
# Support routines for LD testsuite. # Support routines for LD testsuite.
# Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, # Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003,
# 2004, 2005, 2006, 2007 Free Software Foundation, Inc. # 2004, 2005, 2006, 2007, 2009 Free Software Foundation, Inc.
# #
# This file is part of the GNU Binutils. # This file is part of the GNU Binutils.
# #
@ -1591,6 +1591,7 @@ proc check_gc_sections_available { } {
# Some targets don't support gc-sections despite whatever's # Some targets don't support gc-sections despite whatever's
# advertised by ld's options. # advertised by ld's options.
if { [istarget alpha*-*-*] if { [istarget alpha*-*-*]
|| [istarget mep-*-*]
|| [istarget ia64-*-*] } { || [istarget ia64-*-*] } {
set gc_sections_available_saved 0 set gc_sections_available_saved 0
return 0 return 0