h8300-elf-as 2.16.1 fails to assemble valid code: $ cat bug.S .section .mysect label: bra label $ h8300-elf-as bug.S bug.S: Assembler messages: bug.S:3: Internal error, aborting at ../../binutils-2.16.1/gas/config/tc-h8300.c line 2212 in md_pcrel_from Please report this bug. $ h8300-elf-as --version GNU assembler 2.16.1 Copyright 2005 Free Software Foundation, Inc. This program is free software; you may redistribute it under the terms of the GNU General Public License. This program has absolutely no warranty. This assembler was configured for a target of `h8300-elf'.
Reproduced using CVS HEAD.
Fixed probably a long time ago. Current h8300-elf-as says pr1008.s: Assembler messages: pr1008.s:1: Warning: new section '.mysect' defined without attributes - this might cause problems pr1008.s:3: Error: Unexpected reference to a symbol in a non-code section