This website requires JavaScript.
Explore
Help
Sign In
maxjhandsome
/
llvm-project
forked from
OSchip/llvm-project
Watch
1
Star
0
Fork
You've already forked llvm-project
0
Code
Issues
Pull Requests
Packages
Releases
Wiki
Activity
ff40087a6a
llvm-project
/
lld
/
test
/
ELF
/
Inputs
/
protected-shared.s
11 lines
123 B
ArmAsm
Raw
Normal View
History
Unescape
Escape
Produce STV_DEFAULT for symbols in shared libraries. The spec says: If a symbol definition with STV_PROTECTED visibility from a shared object is taken as resolving a reference from an executable or another shared object, the SHN_UNDEF symbol table entry created has STV_DEFAULT visibility. llvm-svn: 265792
2016-04-08 23:43:43 +08:00
.global
foo
.protected
foo
foo
:
Don't lower the visibility because of shared symbols. If a shared library has a protected symbol 'foo', that doesn't imply that the symbol 'foo' in the output should be protected or not. llvm-svn: 265794
2016-04-09 00:11:42 +08:00
.global
bar
.protected
bar
bar
:
Don't create dynamic relocations to ro segments. These would just crash at runtime. If we ever decide to support rw text segments this should make it easier to implement as there is now a single point where we notice the problem. I have tested this with a freebsd buildworld. It found a non pic assembly file being linked into a .so,. With that fixed, buildworld finished. llvm-svn: 268149
2016-04-30 09:15:17 +08:00
.global
zed
zed
: