From: Richard Sandiford Date: Sat, 22 May 2004 19:33:17 +0000 (+0000) Subject: mips.c (mips_asm_file_start): Emit a .gcc_compiled_longXX section when generating... X-Git-Tag: releases/gcc-4.0.0~8196 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0a0de3bff058d3cb4f82d04f9de1ec0d957ecb5f;p=thirdparty%2Fgcc.git 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index eebf878f00fe..209279f8e84d 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2004-05-22 Richard Sandiford + + * config/mips/mips.c (mips_asm_file_start): Emit a .gcc_compiled_longXX + section when generating EABI code. + 2004-05-22 Andrew Pinski PR 15546 diff --git a/gcc/config/mips/mips.c b/gcc/config/mips/mips.c index 5bcdbd938bce..f63c92fe0d26 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