This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

bugs with binutils-2.11, target m68k-elf


Hi,

I have some problems with binutils 2.11,
configured for m68k-elf.

The following code is not useful, but shows
some of the problems:

  .text
  .ds.l 4096
  jbra  local
  jbra  global
  nop
  .xdef global
global:
  lea len,%a0
local:
  nop
  .xdef t1
t1:
  .data
  .long 1,2,3,4,5,6,7,8
l1:
l2:
l3:
tbl:
  .long 1
  .long 2
tble:
  .set len,tble-l2


This produces the output:

   1                      .text
   2 ???? 0000 0000       .ds.l 4096
   2      0000 0000
   2      0000 0000
   2      0000 0000
   2      0000 0000
   3 ???? 600A            jbra  local
   4 ???? 6000            jbra  global
   5 ???? 4E71            nop
   6                      .xdef global
   7                    global:
   8 ???? 41F9 0000       lea len+1,%a0
   8      0001
   9                    local:
  10 ???? 4E71            nop
  11                      .xdef t1
  12                    t1:
  13 ???? 0000            .data
  14 ???? 0000 0001       .long 1,2,3,4,5,6,7,8
  14      0000 0002
  14      0000 0003
  14      0000 0004
  14      0000 0005
  15                    l1:
  16                    l2:
  17                    l3:
  18                    tbl:
  19 ???? 0000 0001       .long 1
  20 ???? 0000 0002       .long 2
  21                    tble:
  22                      .set len,tble-l2

DEFINED SYMBOLS
             error.s:9      .text:0000400c local
             error.s:7      .text:00004006 global
                            *ABS*:00000000 len
             error.s:12     .text:0000400e t1
             error.s:15     .data:00000020 l1
             error.s:16     .data:00000000 l2
             error.s:17     .data:00000020 l3
             error.s:18     .data:00000020 tbl
             error.s:21     .data:00000000 tble

NO UNDEFINED SYMBOLS

error.s: Assembler messages:
error.s:22: Error: Value of -16388 too large for field of 1 bytes at
16387


One problem is the error message. relaxable_symbol() in tc-m68k.c
enables
relaxation for embedded targets, but this does not seem to work
properly.

The other problem is that some of the symbols have wrong values. l2
should
have the same value as l1, l3. tble should be 0x28, len should be 8!

Any suggestions?

Thanks in advance,

Peter Jakubek
pjak@snafu.de



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]