Linker Does Not Accept SHT_PROGBITS Type For .eh_frame Section On AMD Solaris (Doc ID 1514794.1)

Last updated on AUGUST 03, 2016

Applies to:

Solaris Operating System - Version 10 9/10 U9 to 10 8/11 U10 [Release 10.0]
Oracle Solaris Studio - Version Sun Studio 10 to 12.3 [Release 10.0 to 12]
Oracle Solaris on x86-64 (64-bit)

Symptoms


Linking object files together on Solaris 10 on x86-64 system on the AMD64 architecture fails with one of the following errors:

ld: fatal: file sample1.o: section [5].eh_frame: section type is SHT_PROGBITS: expected SHT_AMD64_UNWIND

OR

% ld -G a.o b.o     ld: fatal: file a.o; section [8].eh_frame and file b.o; section [8].eh_frame have incompatible attributes and cannot be merged into a single output section
 

Changes

The problem shows up only if patch 144501-19 (Solaris 10 Update 10 rejuvenated kernel update patch) is installed.

The problem is specific to AMD64, and cannot show up on SPARC.

The problem has been observed

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms