Facing Linking Error "ld: Fatal: Relocation Error: R_SPARC_UA32:" While Compiling With Solaris Studio-12
(Doc ID 2309298.1)
Last updated on JANUARY 23, 2020
Applies to:Oracle Solaris Studio - Version 12.3 and later
Information in this document applies to any platform.
After migrating from SunStudio 10 to Oracle Developer Studio 12.3, while building a library, the linking error below is reported
ld: fatal: relocation error: R_SPARC_UA32: file ........: section .rela.debug_line: symbol .text%........ (section): symbol has been discarded with discarded section: .text%<method_name>(<class_name>).
where <method_name> is the method name for which the symbol gets discarded and <class_name> is the name of the class <method_name> belongs to.
How to solve this error?
To view full details, sign in with your My Oracle Support account.
Don't have a My Oracle Support account? Click to get started!
In this Document