[llvm-commits] [llvm] r141440 - /llvm/trunk/lib/MC/ELFObjectWriter.cpp

Chandler Carruth chandlerc at google.com
Fri Oct 7 19:27:24 PDT 2011


On Fri, Oct 7, 2011 at 4:29 PM, Nick Lewycky <nicholas at mxc.ca> wrote:

> Author: nicholas
> Date: Fri Oct  7 18:29:53 2011
> New Revision: 141440
>
> URL: http://llvm.org/viewvc/llvm-project?rev=141440&view=rev
> Log:
> Don't emit the symbol table entry for the .symtab_shndx section either.
>

Test case?


>
> Modified:
>    llvm/trunk/lib/MC/ELFObjectWriter.cpp
>
> Modified: llvm/trunk/lib/MC/ELFObjectWriter.cpp
> URL:
> http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/MC/ELFObjectWriter.cpp?rev=141440&r1=141439&r2=141440&view=diff
>
> ==============================================================================
> --- llvm/trunk/lib/MC/ELFObjectWriter.cpp (original)
> +++ llvm/trunk/lib/MC/ELFObjectWriter.cpp Fri Oct  7 18:29:53 2011
> @@ -302,7 +302,8 @@
>     if (Section.getType() == ELF::SHT_RELA ||
>         Section.getType() == ELF::SHT_REL ||
>         Section.getType() == ELF::SHT_STRTAB ||
> -        Section.getType() == ELF::SHT_SYMTAB)
> +        Section.getType() == ELF::SHT_SYMTAB ||
> +        Section.getType() == ELF::SHT_SYMTAB_SHNDX)
>       continue;
>     WriteSymbolEntry(SymtabF, ShndxF, 0, ELF::STT_SECTION, 0, 0,
>                      ELF::STV_DEFAULT, SectionIndexMap.lookup(&Section),
> false);
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20111007/e7b0c785/attachment.html>


More information about the llvm-commits mailing list