
Huge Size Of Linked Executables When Compiling With DWARF And Debugging Enabled
(Doc ID 1425525.1)
Last updated on FEBRUARY 03, 2025
Applies to:
Oracle Solaris Studio - Version Sun Studio 11 to 12.3 [Release 11.0 to 12]
Information in this document applies to any platform.
Symptoms
Linked executables are significantly larger compared to older Sun Studio versions after any of the following:
- Upgrade of the compilers, typically from Sun Studio 11 and older to Sun Studio 12 and newer
OR
- the -xdebugformat=dwarf option was added
- the -xs option was not used with the older compilers
At link time, the linker might hit 32-bit boundaries:
ld: elf error: file <file path and name>: elf_update: Memory allocation error: output file space: Not enough space
Changes
The problem shows up when debugging support has been enabled via any of -g, -g0, or -g3, AND the following option is active:
-xdebugformat=dwarf
-xdebugformat=dwarf is the default
- in C 5.8 (Sun Studio 11) and higher
- in C++ 5.9 (Sun Studio 12) and higher
- in f90 8.3 (Sun Studio 12) and higher
The problem does not show up when the following option is used
-xdebugformat=stabs
-xdebugformat=stabs is the default
- in C 5.7 and earlier
- in C++ 5.8 and earlier
- in f90 8.2 and earlier
Cause
|
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
My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.