summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>2004-05-22 19:33:17 +0000
committerrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>2004-05-22 19:33:17 +0000
commit07090b274b15160bf2e70e3620a655549bb240f1 (patch)
tree5f90b9e6687dfcf99620eb911adfa387fe8018ee
parent550bbfa8d896a7207e889bd05f37e28679f7e333 (diff)
downloadgcc-07090b274b15160bf2e70e3620a655549bb240f1.tar.gz
* config/mips/mips.c (mips_asm_file_start): Emit a .gcc_compiled_longXX
section when generating EABI code. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@82145 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/mips/mips.c7
2 files changed, 12 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index eebf878f00f..209279f8e84 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2004-05-22 Richard Sandiford <rsandifo@redhat.com>
+
+ * config/mips/mips.c (mips_asm_file_start): Emit a .gcc_compiled_longXX
+ section when generating EABI code.
+
2004-05-22 Andrew Pinski <pinskia@physics.uc.edu>
PR 15546
diff --git a/gcc/config/mips/mips.c b/gcc/config/mips/mips.c
index 5bcdbd938bc..f63c92fe0d2 100644
--- a/gcc/config/mips/mips.c
+++ b/gcc/config/mips/mips.c
@@ -5873,6 +5873,13 @@ mips_file_start (void)
executable. */
fprintf (asm_out_file, "\t.section .mdebug.%s\n", abi_string);
+ /* There is no ELF header flag to distinguish long32 forms of the
+ EABI from long64 forms. Emit a special section to help tools
+ such as GDB. */
+ if (mips_abi == ABI_EABI)
+ fprintf (asm_out_file, "\t.section .gcc_compiled_long%d\n",
+ TARGET_LONG64 ? 64 : 32);
+
/* Restore the default section. */
fprintf (asm_out_file, "\t.previous\n");
#endif