PATCH for using both RELA and REL relocations in the samebackend
Ian Lance Taylor
ian@airs.com
Thu Jul 1 00:00:00 GMT 1999
From: Mark Mitchell <mark@codesourcery.com>
Date: Tue, 01 Jun 1999 20:28:58 -0700
@@ -3952,8 +3962,8 @@ swap_out_syms (abfd, sttp, relocatable_p
flagword flags = syms[idx]->flags;
int type;
- if (flags & BSF_SECTION_SYM)
- /* Section symbols have no names. */
+ if ((flags & BSF_SECTION_SYM) && !syms[idx]->name)
+ /* Some section symbols have no names. */
sym.st_name = 0;
else
{
By the way, this appears to be an unrelated patch. I believe this
will change gas behaviour on GNU/Linux and Solaris and other systems.
I'm not sure this is a good idea.
Ian
More information about the Binutils
mailing list