[PATCH] D109090: [PPC64] fix/workaround runtime crash on FreeBSD with llvm12 and later
Alfredo Dal'Ava JĂșnior via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 13 19:59:15 PDT 2021
adalava added a comment.
It's now avoiding a copy relocation for '__stack_chk_guard':
Relocation section with addend (.rela.dyn):
r_offset r_info r_type st_value st_name + r_addend
000010020f88 000100000026 R_PPC64_ADDR64 0000000000000000 _init_tls + 0
000010020f80 000200000026 R_PPC64_ADDR64 0000000000000000 atexit + 0
000010020f98 000300000026 R_PPC64_ADDR64 0000000000000000 exit + 0
000010020fa8 000800000026 R_PPC64_ADDR64 0000000000000000 __stack_chk_guard + 0
..
..
Symbol table (.dynsym) contains 11 entries:
Num: Value Size Type Bind Vis Ndx Name
0: 0000000000000000 0 NOTYPE LOCAL DEFAULT UND
1: 0000000000000000 0 FUNC GLOBAL DEFAULT UND _init_tls at FBSD_1.0 (2)
2: 0000000000000000 0 FUNC GLOBAL DEFAULT UND atexit at FBSD_1.0 (2)
3: 0000000000000000 0 FUNC GLOBAL DEFAULT UND exit at FBSD_1.0 (2)
4: 0000000000000000 0 NOTYPE WEAK DEFAULT UND _Jv_RegisterClasses
5: 0000000000000000 0 FUNC GLOBAL DEFAULT UND ttyname_r at FBSD_1.0 (2)
6: 0000000000000000 0 FUNC GLOBAL DEFAULT UND err at FBSD_1.0 (2)
7: 0000000000000000 0 FUNC GLOBAL DEFAULT UND __stack_chk_fail at FBSD_1.0 (2)
8: 0000000000000000 0 OBJECT GLOBAL DEFAULT UND __stack_chk_guard at FBSD_1.0 (2)
9: 0000000010030fb0 8 OBJECT GLOBAL DEFAULT 24 __progname
10: 0000000010030fc0 8 OBJECT GLOBAL DEFAULT 26 environ
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D109090/new/
https://reviews.llvm.org/D109090
More information about the llvm-commits
mailing list