Commit 0a0de3bf by Richard Sandiford Committed by Richard Sandiford

mips.c (mips_asm_file_start): Emit a .gcc_compiled_longXX section when generating EABI code.

	* config/mips/mips.c (mips_asm_file_start): Emit a .gcc_compiled_longXX
	section when generating EABI code.

From-SVN: r82145
parent 1e2e9f54
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> 2004-05-22 Andrew Pinski <pinskia@physics.uc.edu>
PR 15546 PR 15546
......
...@@ -5873,6 +5873,13 @@ mips_file_start (void) ...@@ -5873,6 +5873,13 @@ mips_file_start (void)
executable. */ executable. */
fprintf (asm_out_file, "\t.section .mdebug.%s\n", abi_string); 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. */ /* Restore the default section. */
fprintf (asm_out_file, "\t.previous\n"); fprintf (asm_out_file, "\t.previous\n");
#endif #endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment