$ sh64-linux-as libgcc2.s
libgcc2.s: Assembler messages:
libgcc2.s:410: Internal error!
Assertion failure in shmedia_md_pcrel_from_section at
/TMP/binutils-18.104.22.168.6/gas/config/tc-sh64.c line 3067.
Please report this bug.
$ sh64-linux-as --version
GNU assembler (Linux/GNU Binutils) 22.214.171.124.6.20080403
Copyright 2007 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License version 3 or later.
This program has absolutely no warranty.
This assembler was configured for a target of `sh64-linux'.
Created attachment 2359 [details]
A reduced testcase:
It seems that the recent gas calls shmedia_md_pcrel_from_section with the way
that the function didn't expect. I'm testing the following patch now.
diff -uprN ORIG/src/gas/config/tc-sh64.c LOCAL/src/gas/config/tc-sh64.c
--- ORIG/src/gas/config/tc-sh64.c 2007-07-31 09:12:54.000000000 +0900
+++ LOCAL/src/gas/config/tc-sh64.c 2008-04-07 07:30:33.000000000 +0900
@@ -3064,8 +3064,7 @@ shmedia_md_pcrel_from_section (struct fi
- know (0 /* Shouldn't get here. */);
+ /* Fall through. */
/* If section was SHcompact, use its function. */