[PATCH] D18419: Handle section vs global name conflict.

Evgeniy Stepanov via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 23 16:34:48 PDT 2016


eugenis created this revision.
eugenis added reviewers: pcc, rafael.
eugenis added a subscriber: llvm-commits.
eugenis set the repository for this revision to rL LLVM.

This is a fix for PR26941.

When there is both a section and a global definition with the same
name, the global wins.

Section symbols are not added to the symbol table; section references
are left undefined and fixed up in the object writer unless they've
been satisfied by some other definition.


Repository:
  rL LLVM

http://reviews.llvm.org/D18419

Files:
  include/llvm/MC/MCContext.h
  lib/MC/ELFObjectWriter.cpp
  lib/MC/MCContext.cpp
  test/MC/ELF/section-sym-err.s
  test/MC/ELF/section-sym-redefine.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D18419.51491.patch
Type: text/x-patch
Size: 6537 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160323/23282a4a/attachment.bin>


More information about the llvm-commits mailing list