Displaying 1 result from an estimated 1 matches for "needsreloc".
Did you mean:
need_relocs
2020 May 07
2
Emitting a local alias
...tion*
```
The latter is what's generated when using a GlobalAlias with private
linkage. 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...