bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug gas/27415] New: eZ80 relocation computation fails unexpectedly


From: stp+sw334 at bje dot id.au
Subject: [Bug gas/27415] New: eZ80 relocation computation fails unexpectedly
Date: Sun, 14 Feb 2021 07:16:22 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=27415

            Bug ID: 27415
           Summary: eZ80 relocation computation fails unexpectedly
           Product: binutils
           Version: 2.36.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: gas
          Assignee: unassigned at sourceware dot org
          Reporter: stp+sw334 at bje dot id.au
  Target Milestone: ---

The test case `z80_reloc.s` tests a variety of shift and mask expressions
involving undefined symbols. Several expressions I would expect to work do not:

    .assume adl=1
    ld hl, data24 >> 8

Should produce:
   0:   21 00 00 00             ld hl,0x0000
                        1: r_word1      data24

Or possibly as r_byte1 and r_byte2 at 1: and 2: respectively.

    dw data24 >> 8

Should produce:
    0: 00 00
          0: r_word1     data24

Instead, these expressions result in an error:

    Error: invalid operands (*UND* and *ABS* sections) for `>>'

This may be a documentation fault where `BFD_RELOC_Z80_WORD1` is described as
"Highest 16 bits of multibyte (32 or 24 bit) value.", but is only used as the
highest 16 bits of a 32 bit value.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]