Add support for: R_HEX_GD_GOT_11/16_X and R_HEX_GD_GOT_32_6_X
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
[Hexagon] Add support for global dynamic relocs
GD has several names, "general dynamic", "generic dynamic" (typo), "global dynamic" (likely mistake, used by gcc/clang function attribute). "General dynamic" is the canonical one.
Comment Actions
Update testcase.
- Verify the absence of relocations in the executable.
- hexagon may call tls_get_addr but the name is not explicitly stated in the ABI. The internally maintained linker will create the symbol to call which is generally "tls_get_addr". There are instances when it would not be "tls_get_addr" such as when a user built a static executable using objects built -shared -pic. In such a case the internal linker would create a stub called __hexagon_ie_tls_get_addr and call it. LLD for hexagon would not support doing this until some design could be agreed upon.
- Don't check explicit addresses in GOT.
- Added the check for the closing brace.
excess space