lsb

elfchk claimings on ppc32 binaries

Bug #1332189 reported by Jeff Johnson
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
lsb
In Progress
Medium
Unassigned
Mandriva
In Progress
Medium

Bug Description

Tarball with test results

We've just got the following question about appchk running on ppc32 against LSB
3.0:

/***************/
LSB app checker reports error in the ELF header for some of the binaries
on 32 bit PPC.

Following are the error messages:
       Section .got: sh_flags is wrong. expecting 7, got 3
       Section .plt: sh_type is wrong. Expecting 8, got 1
       Section .plt: sh_flags is wrong. expecting 7, got 3

We build those binaries on PPC64 using 32bit GCC. Not all binaries have
this problem, though the 'gcc' command line for all the binaries is same
except static library linking. PPC64 binaries do not have this error.

I have attached the test results.

Can you please through some light on this?
/***************/

The more clear description of the issues is like the following:
- Section .got has 'SHF_WRITE+SHF_ALLOC' attributes instead of expected
'SHF_WRITE+SHF_ALLOC+SHF_EXECINSTR';
- Section .plt has 'SHT_PROGBITS' type instead of expected 'SHT_NOBITS' + the
same issues with attributes.

Are there any ideas about the reasons of such behavior? If these claimings are
reasonable (and will prevent from certifying apps), we should be able to give
suggestions on how to avoid them.

Is it possible that 32bit gcc inside ppc64 system somehow creates binaries that
differ from the ones created by gcc in 'clean' 32bit environment?

Changed in mandriva:
importance: Unknown → Medium
status: Unknown → In Progress
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related blueprints

Remote bug watches

Bug watches keep track of this bug in other bug trackers.