Red Hat Bugzilla – Bug 121606
ELF file's phentsize not the expected size
Last modified: 2007-04-18 13:06:33 EDT
Description of problem:
Getting "ELF file's phentsize not the expected size" while trying to
use a static library. The library was built in the following matter:
ld -r ccc_lic.o -L my_path my_lib.a -o my_output
ccc_lic.o was compiled like this:
gcc -c ccc_lic.c
$ gcc -v
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/2.96/specs
gcc version 2.96 20000731 (Red Hat Linux 7.3 2.96-110)
$ uname -a
Linux dplinux1 2.4.18-5 #1 Mon Jun 10 15:31:48 EDT 2002 i686 unknown
$ cat /etc/redhat-release
Red Hat Linux release 7.3 (Valhalla)
$ rpm -q glibc
My question is: What is the meaning of this message, and how do I
First of all, please note that RHL7.3 is no longer supported product,
so please try to reproduce this with one of the currently supported
products (RHEL 2.1, RHEL3, RHL9 (if you manage today), FC1 or FC2 betas).
Second, what exactly are you doing that triggers this message?
It is in the dynamic linker, are you trying to dlopen the relocatable
object my_output or what?
Upstream glibc has been changed so that when dlopening ET_REL
objects it will complain about "only ET_DYN and ET_EXEC can be loaded"
instead of "ELF file's phentsize not the expected size".
An errata has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.