search for: symbol_b

Displaying 1 result from an estimated 1 matches for "symbol_b".

Did you mean: symbol_o
2020 May 07
2
Emitting a local alias
...I'm asking because in either case, I want to be able to place _ZTVSt13bad_exception in .rodata instead of .data.rel.ro which requires that the object does not need a relocation. According to `Constant::needsRelocation()`, a reloc isn't needed if the offset I'm taking (.long symbol_A - symbol_B) contains symbols that are both dso_local. I can guarantee that `symbol_A` will be, but `symbol_B` needs to be a global with default visibility. My solution around this is to emit a local alias, but the issue is that with optimizations (-O3), the latter snippet seems to "resolve" the alia...