From 65551fa46cc1ef69a04fe817c221c3949a56c139 Mon Sep 17 00:00:00 2001 From: Chris Demetriou Date: Wed, 18 Sep 2002 21:05:59 +0000 Subject: [ gas/ChangeLog ] 2002-09-18 Chris Demetriou * config/tc-mips.c (md_apply_fix3): Just return for BFD_RELOC_8. [ gas/testsuite/ChangeLog ] 2002-09-18 Chris Demetriou * gas/mips/baddata1.s: New file. * gas/mips/baddata1.l: New file. * gas/mips/mips.exp: Run new test. --- gas/ChangeLog | 4 ++++ gas/config/tc-mips.c | 5 +++++ gas/testsuite/ChangeLog | 6 ++++++ gas/testsuite/gas/mips/baddata1.l | 3 +++ gas/testsuite/gas/mips/baddata1.s | 9 +++++++++ 5 files changed, 27 insertions(+) create mode 100644 gas/testsuite/gas/mips/baddata1.l create mode 100644 gas/testsuite/gas/mips/baddata1.s (limited to 'gas') diff --git a/gas/ChangeLog b/gas/ChangeLog index 7f8700b..a959777 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,7 @@ +2002-09-18 Chris Demetriou + + * config/tc-mips.c (md_apply_fix3): Just return for BFD_RELOC_8. + 2002-09-18 Thiemo Seufer * config/tc-mips.c (s_change_section): Fix parsing. Code cleanup. diff --git a/gas/config/tc-mips.c b/gas/config/tc-mips.c index b75649c..c102675 100644 --- a/gas/config/tc-mips.c +++ b/gas/config/tc-mips.c @@ -10661,6 +10661,11 @@ md_apply_fix3 (fixP, valP, seg) valueT value; static int previous_fx_r_type = 0; + /* FIXME: Maybe just return for all reloc types not listed below? + Eric Christopher says: "This is stupid, please rewrite md_apply_fix3. */ + if (fixP->fx_r_type == BFD_RELOC_8) + return; + assert (fixP->fx_size == 4 || fixP->fx_r_type == BFD_RELOC_16 || fixP->fx_r_type == BFD_RELOC_32 diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index dd43eef..7ab5e58 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2002-09-12 Chris Demetriou + + * gas/mips/baddata1.s: New file. + * gas/mips/baddata1.l: New file. + * gas/mips/mips.exp: Run new test. + 2002-09-18 Chris Demetriou * gas/mips/branch-misc-1.d: New file. diff --git a/gas/testsuite/gas/mips/baddata1.l b/gas/testsuite/gas/mips/baddata1.l new file mode 100644 index 0000000..6efafcb --- /dev/null +++ b/gas/testsuite/gas/mips/baddata1.l @@ -0,0 +1,3 @@ +.*: Assembler messages: +.*:8: Error: Can not represent BFD_RELOC_8 relocation in this object file format +.*:9: Error: Can not represent BFD_RELOC_8 relocation in this object file format diff --git a/gas/testsuite/gas/mips/baddata1.s b/gas/testsuite/gas/mips/baddata1.s new file mode 100644 index 0000000..0a90107 --- /dev/null +++ b/gas/testsuite/gas/mips/baddata1.s @@ -0,0 +1,9 @@ +# Source file used to some bad data declarations. + + .globl x + + .data +foo: + # no way these are going to hold the pointers. + .byte x + .byte x+1 -- cgit v1.1