diff options
author | Gunnar Beutner <gbeutner@serenityos.org> | 2021-05-31 11:39:00 +0200 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2021-05-31 11:49:32 +0100 |
commit | 73b9cfac1b4fddd5e8105427ffd8e22d5c2eee51 (patch) | |
tree | 11c0e224662613b72931d05d764951e9222b6afb /Userland/Applications/Spreadsheet | |
parent | 26cb64573c75bab5f9d049fc6bd841d24670624b (diff) | |
download | serenity-73b9cfac1b4fddd5e8105427ffd8e22d5c2eee51.zip |
LibELF: Support weak symbols when using BIND_NOW
When using BIND_NOW (e.g. via -Wl,-z,now) we would fail to load ELF
images while doing relocations when we encounter a weak symbol. Instead
we should just patch the PLT entry with a null pointer.
This can be reproduced with:
$ cat test.cpp
int main()
{
std::cout << "Hello World!" << std::endl;
}
$ g++ -o test -Wl,-z,now test.cpp
$ ./test
did not find symbol while doing relocations for library test: _ITM_RU1
Diffstat (limited to 'Userland/Applications/Spreadsheet')
0 files changed, 0 insertions, 0 deletions