This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[PATCH] Eliminate ELF_OBJECT_FORMAT macro
- From: Kevin Buettner <kevinb at redhat dot com>
- To: gdb-patches at sources dot redhat dot com
- Date: Mon, 8 Apr 2002 18:10:34 -0700
- Subject: [PATCH] Eliminate ELF_OBJECT_FORMAT macro
The patch below eliminates ELF_OBJECT_FORMAT. This macro used to be
used to conditionally enable or disable code in rs6000-tdep.c related
to SysV or EABI issues. Actually, it still does disable some code in
rs6000_push_arguments(), ostensibly for EABI support, but
rs6000_push_arguments is no longer used for EABI support.
* config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
* rs6000-tdep.c (rs6000_push_arguments): Eliminate
ELF_OBJECT_FORMAT ifdef.
Index: rs6000-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/rs6000-tdep.c,v
retrieving revision 1.46
diff -u -p -r1.46 rs6000-tdep.c
--- rs6000-tdep.c 9 Apr 2002 00:10:09 -0000 1.46
+++ rs6000-tdep.c 9 Apr 2002 00:50:41 -0000
@@ -1039,7 +1039,7 @@ rs6000_push_arguments (int nargs, struct
ran_out_of_registers_for_arguments:
saved_sp = read_sp ();
-#ifndef ELF_OBJECT_FORMAT
+
/* location for 8 parameters are always reserved. */
sp -= wordsize * 8;
@@ -1048,7 +1048,6 @@ ran_out_of_registers_for_arguments:
/* stack pointer must be quadword aligned */
sp &= -16;
-#endif
/* if there are more arguments, allocate space for them in
the stack, then push them starting from the ninth one. */
Index: config/powerpc/tm-ppc-eabi.h
===================================================================
RCS file: /cvs/src/src/gdb/config/powerpc/tm-ppc-eabi.h,v
retrieving revision 1.8
diff -u -p -r1.8 tm-ppc-eabi.h
--- config/powerpc/tm-ppc-eabi.h 20 Jan 2002 19:26:49 -0000 1.8
+++ config/powerpc/tm-ppc-eabi.h 9 Apr 2002 00:50:42 -0000
@@ -36,9 +36,6 @@
#undef TEXT_SEGMENT_BASE
#define TEXT_SEGMENT_BASE 1
-/* Say that we're using ELF, not XCOFF. */
-#define ELF_OBJECT_FORMAT 1
-
/* The value of symbols of type N_SO and N_FUN maybe null when
it shouldn't be. */
#define SOFUN_ADDRESS_MAYBE_MISSING