HomePhabricator

[llvm-objdump] --syms: print 'u' for STB_GNU_UNIQUE

Authored by MaskRay on Mar 6 2020, 9:00 PM.

Description

[llvm-objdump] --syms: print 'u' for STB_GNU_UNIQUE

GCC when configured with --enable-gnu-unique (default on glibc>=2.11)
emits STB_GNU_UNIQUE for certain objects which are otherwise emitted as
STT_OBJECT, such as an inline function's static local variable or its
guard variable, and a static data member of a template.

Clang does not implement -fgnu-unique.

Implementing it as a binding is strange and the feature itself is
considered by some as a misfeature.

Reviewed By: grimar, jhenderson

Differential Revision: https://reviews.llvm.org/D75797

Details

Committed
MaskRayMar 13 2020, 8:04 AM
Reviewer
grimar
Differential Revision
D75797: [llvm-objdump] --syms: print 'u' for STB_GNU_UNIQUE
Parents
rGe799405e5368: [llvm-objdump] --syms: print 'i' for STT_GNU_IFUNC
Branches
Unknown
Tags
Unknown