[#6287] Blackfin gas sets reloc size incorrectly

Document created by Aaronwu Employee on Oct 17, 2013
Version 1Show Document
  • View in full screen mode

[#6287] Blackfin gas sets reloc size incorrectly

Submitted By: Mike Frysinger

Open Date

2010-10-10 05:04:57    

Priority:

Medium     Assignee:

Stuart Henderson

Board:

N/A     Silicon Revision:

Resolution:

N/A     Fixed In Release:

N/A

Processor:

ALL     

Host Operating System:

toolchain rev.:

    kernel rev.:

State:

Open     Found In Release:

N/A

Is this bug repeatable?:

N/A     

Summary: Blackfin gas sets reloc size incorrectly

Details:

 

upstream has re-enabled a test that the Blackfin assembler fails:

    http://sourceware.org/ml/binutils/2007-02/msg00277.html

 

to reproduce in our current svn, simply edit gas/write.c:

@@ -834,12 +834,9 @@ write_relocs (bfd *abfd, asection *sec,

          continue;

        }

 

-      /*

-       This test is triggered inappropriately for the SH:

          if (fixp->fx_where + fixp->fx_size

             > fixp->fx_frag->fr_fix + fixp->fx_frag->fr_offset)

             abort ();

-      */

 

       s = bfd_install_relocation (stdoutput, reloc,

                                  fixp->fx_frag->fr_literal,

 

then attempt to run the tests ... many will now fail.

 

$ ./gas/as-new ../gas/testsuite/gas/bfin/reloc.s

../gas/testsuite/gas/bfin/reloc.s: Assembler messages:

../gas/testsuite/gas/bfin/reloc.s:19: Internal error, aborting at ../../gas/write.c line 839 in write_relocs

Please report this bug.

 

seems we need to review the setting of "size" in tc-bfin.c:md_assemble() based upon the reloc type specified ...

 

Follow-ups

No Messages Were Found

 

 

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

 

File Name     File Type     File Size     Posted By

No Files Were Found

Attachments

    Outcomes