Commit ec0e4d6
committed
linux: park -fno-semantic-interposition + -fno-plt (JNI alias clash)
Both flags are incompatible with default-visibility JNI export aliases
emitted by NETTY_JNI_ALIAS in netty/netty-tcnative. Under
-fno-semantic-interposition the compiler treats those aliases as
PC-rel-addressable from inside the DSO, but the aarch64 linker
(ld.lld) sees their declared default visibility and refuses the
resulting relocation:
ld.lld: error: relocation R_AARCH64_ADR_PREL_PG_HI21 cannot be used
against symbol 'Java_io_netty_channel_unix_Socket_recvFrom';
recompile with -fPIC
Move both flags to labs.disabled.txt with the failure mode and the
re-enable condition (move NETTY_JNI_ALIAS to STV_PROTECTED, or stop
emitting default-visibility JNI aliases) inline.1 parent c782f56 commit ec0e4d6
2 files changed
Lines changed: 32 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
68 | 90 | | |
69 | 91 | | |
70 | 92 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
46 | 40 | | |
47 | 41 | | |
48 | 42 | | |
| |||
0 commit comments