United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6490707 libjvm.so: unexpected PLT reloc type 0x08 when loading VM
JDK-6490707 : libjvm.so: unexpected PLT reloc type 0x08 when loading VM

Details
Type:
Bug
Submit Date:
2006-11-07
Status:
Closed
Updated Date:
2012-10-08
Project Name:
JDK
Resolved Date:
2006-12-02
Component:
hotspot
OS:
linux
Sub-Component:
runtime
CPU:
x86
Priority:
P3
Resolution:
Fixed
Affected Versions:
7
Fixed Versions:
hs10 (b03)

Related Reports
Backport:
Backport:

Sub Tasks

Description
Hotspot build with gcc 4.1 on x86 - default on many modern Linux systems leads to unusable 
libjvm.so, failed as "libjvm.so: unexpected PLT reloc type 0x08 "

                                    

Comments
EVALUATION

We use patching of linker script to create VM relocated to some specific address
on Linux/x86 to avoid relocation cost. Thus we build non-relocable DLL to be loaded
at specific address.
 We use output of gcc -Wl,--verbose to obtain proper linker script, and then patch base address.
 Due to changed behaviour in the way gcc interacts with linker output of
gcc -Wl,--verbose 2>&1 > /dev/null got lost, although it should be exactly
needed linker script. 
 Fix it to avoid redirection to /dev/null, as nothing else is being printed by compiler anyway.
                                     
2006-11-07



Hardware and Software, Engineered to Work Together