This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB 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]

[RFA] Fix asm-source.exp for ppc


There is no implicit alignment of the text section on ppc, so without
an explicit alignment it may end up on a unaligned address (due to a
preceding unaligned .dynstr section).

OK for mainline and 6.0 branch?

Andreas.

2003-07-13  Andreas Schwab  <schwab@suse.de>

	* gdb.asm/powerpc.inc (gdbasm_startup): Force alignment.

--- gdb/testsuite/gdb.asm/powerpc.inc.~1.1.~	2002-04-05 04:48:33.000000000 +0200
+++ gdb/testsuite/gdb.asm/powerpc.inc	2003-07-13 11:00:08.000000000 +0200
@@ -36,6 +36,7 @@
 
 	comment "crt0 startup"
 	.macro gdbasm_startup
+	.p2align 2
 	.endm
 
 	comment "Declare a data variable"


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