summaryrefslogtreecommitdiffstats
path: root/lld/test/ELF/Inputs/undef-with-plt-addr.s
Commit message (Collapse)AuthorAgeFilesLines
* Don't create dynamic relocations to ro segments.Rafael Espindola2016-04-301-0/+4
| | | | | | | | | | | | | 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
* Move target independent code out of x86_64 only path.Rafael Espindola2016-02-241-1/+0
| | | | | | | The logic for deciding if an undefined symbol should have the value of a got entry is not target specific. llvm-svn: 261760
* Use the plt entry as the address of some symbols.Rafael Espindola2016-02-091-0/+4
This is the function equivalent of a copy relocation. Since functions are expected to change sizes, we cannot use copy relocations. In situations where one would be needed, what is done instead is: * Create a plt entry * Output an undefined symbol whose addr is the plt entry. The dynamic linker makes sure any shared library uses the plt entry as the function address. llvm-svn: 260224
OpenPOWER on IntegriCloud