[forwarded from https://launchpad.net/bugs/396049]
Seen with 2.19.51.20090713, not 2.19.1-0ubuntu3: An input file consisting of a single "b" character (with or without newline) is sufficient to reproduce the error. However, "beq" also works. I haven't been able to determine whether the parsing of any other instructions is affected; "mov" with no operands causes gas to generate an error message normally, for example. Program received signal SIGSEGV, Segmentation fault. symbol_get_tc (s=0x0) at ../../gas/symbols.c:2699 2699 if (LOCAL_SYMBOL_CHECK (s)) (gdb) bt #0 symbol_get_tc (s=0x0) at ../../gas/symbols.c:2699 #1 0x0003d624 in arm_force_relocation (fixp=0x8f410) at ../../gas/config/tc-arm.c:20811 #2 0x0003da1c in md_pcrel_from_section (fixP=0x8f410, seg=0xa26a0) at ../../gas/config/tc-arm.c:18871 #3 0x0002c498 in fix_segment (abfd=<value optimized out>, sec=0xa26a0, xxx=<value optimized out>) at ../../gas/write.c:1011 #4 0x40067108 in bfd_map_over_sections (abfd=0x8d130, operation=0x2c26c <fix_segment>, user_storage=0x0) at ../../bfd/section.c:1232 #5 0x0002b90c in write_object_file () at ../../gas/write.c:1735 #6 0x0000cec8 in main (argc=578264, argv=0xbe9c3814) at ../../gas/as.c:1232 Related to? 2009-05-05 Ramana Radhakrishnan <ramana.radhakrish...@arm.com> * config/tc-arm.h: Fix typo in comment. (ARM_IS_FUNC): New macro. (MD_APPLY_SYM_VALUE): Define. * config/tc-arm.c (do_blx): Retain BFD_RELOC_ARM_PCREL_BLX for all versions of EABI. (relax_branch): Do not relax for branches to ARM functions. (md_pcrel_from_section): Set up base correctly for BFD_RELOC_THUMB_PCREL_BLX, BFD_RELOC_THUMB_PCREL_CALL, BFD_RELOC_THUMB_PCREL_BRANCH23, BFD_RELOC_ARM_PCREL_BLX BFD_RELOC_ARM_PCREL_CALL. (md_apply_fix): Flip bl to blx where possible. Flip blx to bl where possible. (arm_force_relocation): Force relocations for BFD_RELOC_ARM_PCREL_JUMP, BFD_RELOC_ARM_PCREL_JUMP, BFD_RELOC_ARM_PCREL_BLX, BFD_RELOC_THUMB_PCREL_BLX, BFD_RELOC_THUMB_PCREL_BRANCH20, BFD_RELOC_THUMB_PCREL_BRANCH23, BFD_RELOC_THUMB_PCREL_BRANCH25. (arm_apply_sym_value): New function. -- Summary: branch instruction with no operand causes gas to segfault on arm-linux-gnueabi Product: binutils Version: 2.20 (HEAD) Status: NEW Severity: normal Priority: P2 Component: gas AssignedTo: unassigned at sources dot redhat dot com ReportedBy: doko at debian dot org CC: bug-binutils at gnu dot org http://sourceware.org/bugzilla/show_bug.cgi?id=10387 ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is. _______________________________________________ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils