opatch fail with ld: Invalid dynamic relocation needed for read-only section (Doc ID 2252863.1)

Last updated on APRIL 10, 2017

Applies to:

Oracle Database - Enterprise Edition - Version 12.1.0.2 and later
Information in this document applies to any platform.

Symptoms


While applying a PSU patch on HP-UX Itanium, below warnings were encountered during relink phase :

[Mar 23, 2017 5:57:54 PM] [INFO] --------------------------------------------------------------------------------
[Mar 23, 2017 5:57:54 PM] [INFO] The following warnings have occurred during OPatch execution:
[Mar 23, 2017 5:57:54 PM] [INFO] 1) OUI-67215:
OPatch found the word "error" in the stderr of the make command.
Please look at this stderr. You can re-run this make command.
Stderr output:
ld: Invalid dynamic relocation needed for read-only section, in input file /orasft/app/oracle/product/12.1/lib/libpls12_pic.a[pfrdis.o], for symbol .text at offset 1fa0
ld: Invalid dynamic relocation needed for read-only section, in input file /orasft/app/oracle/product/12.1/lib/libpls12_pic.a[pfrdis.o], for symbol .text at offset 1fa8

ld: Invalid non-PIC relocation for symbol ".rodata" in file "/orasft/app/oracle/product/12.1/lib/libpls12_pic.a[pfrdis.o]" (section index 11, offset 0x302).
ld: Invalid non-PIC relocation for symbol ".rodata" in file "/orasft/app/oracle/product/12.1/lib/libpls12_pic.a[pfrdis.o]" (section index 11, offset 0x392).

 

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