This is the mail archive of the
binutils@sourceware.cygnus.com
mailing list for the binutils project.
Re: PATCH for using both RELA and REL relocations in the samebackend
- To: mark@codesourcery.com
- Subject: Re: PATCH for using both RELA and REL relocations in the samebackend
- From: Ian Lance Taylor <ian@airs.com>
- Date: 2 Jun 1999 00:28:57 -0400
- CC: binutils@sourceware.cygnus.com
- References: <19990601202858Z.mitchell@codesourcery.com>
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