https://bugs.llvm.org/show_bug.cgi?id=35666
Bug ID: 35666
Summary: Function aliases in .so not preserved when one is
"copied" to executable
Product: lld
Version: unspecified
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: ELF
Assignee: unassignedb...@nondot.org
Reporter: rafael.espind...@gmail.com
CC: llvm-bugs@lists.llvm.org
This is an extremely low priority bug. Mostly just something I wanted to
document somewhere.
When a shared library has two aliased global symbols (foo=bar) and they are
objects, a copy relocation from an executable will bring both symbols to the
symbol table of the executable so that the alias is preserved.
If the symbols are functions that is not done. It is also not implemented by
bfd or gold.
The only way I can think of fixing this without bloating Symbol is to create a
single entry plt synthetic section and assign that to CopyRelSec, similar to
how we handle copy relocations.
This would have the advantage of removing NeedsPltAddr, but I think it would be
more complicated overall.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs