This is the mail archive of the binutils@sourceware.org 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]
Other format: [Raw text]

[PATCH 0/2] Fix ISA mode bit handling for .insn annotations


Hi,

This series of patches fixes the propagation of ISA mode bit in microMIPS symbols declared with the .insn annotation. Currently implicit alignment in case of a .insn followed by .hword causes the ISA mode bit for the preceding label to be reset, although the type of label remains ST_MICROMIPS. This situation does not arise in generated assembly but is possible in hand-written assembly.

 Patch #1 ensures that the existing ISA mode bit is carried forward across alignment. This causes misalignment checks to fail simply because the calculation of the target address for error messages assumes that the ISA mode bit is never set. Patch #2 corrects those error messages to dis-regard the ISA bit.

Regards,
Faraz Shahbazker (2):
  MIPS/gas: Retain ISA mode bit for labels with .insn annotation
  MIPS/gas: Fix misaligned address errors to disregard ISA mode bit

 gas/config/tc-mips.c                   | 34 ++++++++++++++++++++++++++--------
 gas/testsuite/gas/mips/insn-isa-mode.d | 16 ++++++++++++++++
 gas/testsuite/gas/mips/insn-isa-mode.s | 14 ++++++++++++++
 gas/testsuite/gas/mips/mips.exp        |  1 +
 4 files changed, 57 insertions(+), 8 deletions(-)
 create mode 100644 gas/testsuite/gas/mips/insn-isa-mode.d
 create mode 100644 gas/testsuite/gas/mips/insn-isa-mode.s

-- 
2.9.5


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