This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: Problems on sparc64-linux for binutils trunk 20021201, Error: unaligned opcodes detected in executable segment
On Wed, Dec 04, 2002 at 09:14:34AM +1030, Alan Modra wrote:
> On Tue, Dec 03, 2002 at 05:04:14PM +0100, Christian Jönsson wrote:
> > > /tmp/cco7sVsD.s: Assembler messages:
> > > /tmp/cco7sVsD.s:1668: Error: unaligned opcodes detected in executable segment
>
> This indicates a gcc error.
Then again, maybe not.
* dwarf2dbg.c (scale_addr_delta): Correct parameter. Move prototype
inside #if.
Index: gas/dwarf2dbg.c
===================================================================
RCS file: /cvs/src/src/gas/dwarf2dbg.c,v
retrieving revision 1.57
diff -u -p -r1.57 dwarf2dbg.c
--- gas/dwarf2dbg.c 30 Nov 2002 08:39:42 -0000 1.57
+++ gas/dwarf2dbg.c 4 Dec 2002 01:01:50 -0000
@@ -174,7 +174,6 @@ static void out_debug_line PARAMS ((segT
static void out_debug_aranges PARAMS ((segT, segT));
static void out_debug_abbrev PARAMS ((segT));
static void out_debug_info PARAMS ((segT, segT, segT));
-static void scale_addr_delta PARAMS ((int *));
/* Find or create an entry for SEG+SUBSEG in ALL_SEGS. */
@@ -598,9 +597,11 @@ out_set_addr (seg, frag, ofs)
}
#if DWARF2_LINE_MIN_INSN_LENGTH > 1
+static void scale_addr_delta PARAMS ((addressT *));
+
static void
scale_addr_delta (addr_delta)
- int *addr_delta;
+ addressT *addr_delta;
{
static int printed_this = 0;
if (*addr_delta % DWARF2_LINE_MIN_INSN_LENGTH != 0)
--
Alan Modra
IBM OzLabs - Linux Technology Centre