Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 91411 - prelink 0.3.4 available, able to cope with .debug_log sections from gcc 4.0.0
Summary: prelink 0.3.4 available, able to cope with .debug_log sections from gcc 4.0.0
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal
Assignee: Stefan Jones (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-04 04:41 UTC by Christophe Saout
Modified: 2005-05-27 10:31 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
proposed prelink 0.3.4 ebuild (prelink-0.3.4.ebuild,1.81 KB, text/plain)
2005-05-04 04:43 UTC, Christophe Saout
Details
"goto error_out" issue workaround in gcc 4.0.0 (prelink-0.3.4-gcc4-workaround.patch,6.33 KB, patch)
2005-05-04 04:43 UTC, Christophe Saout
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Christophe Saout 2005-05-04 04:41:40 UTC
The current prelink in Gentoo isn't able to handle ELF files that were compiled with gcc 4.0.0 (and not stripped).

It says: ".debug_log adjusting unfinished".

I found a newer version of prelink that is used in Fedora. Jakub forgot to put that version into his FTP directory...

Anyway, the SRPM contains the working source code.

Since it's called 0.3.4 it's perhaps time to switch the versioning from date to a normal one...? Your call.

I've attached an ebuild that pulls the SRPM and compiles it. No other changes to the ebuild were required.

I've also included a stupid workaround for a strange gcc 4.0.0 issue. I'm getting a strange error message where he complains that something is wrong with the goto statement. It's just a workaround. If someone can come up with a better solution or show that it's just my fault, you can of course omit it (or wait for  gcc to fix the bug).


Reproducible: Always
Steps to Reproduce:
Comment 1 Christophe Saout 2005-05-04 04:43:00 UTC
Created attachment 58020 [details]
proposed prelink 0.3.4 ebuild
Comment 2 Christophe Saout 2005-05-04 04:43:56 UTC
Created attachment 58021 [details, diff]
"goto error_out" issue workaround in gcc 4.0.0

for the FILESDIR, used by proposed ebuild
Comment 3 Stefan Jones (RETIRED) gentoo-dev 2005-05-27 09:15:03 UTC
Someone beat me to submitting the ebuild, sys-devel/prelink-20050314

Also I would guess the gcc-4 issue is a compiler bug as the code looks valid.
( I would guess the gcc optimiser gets confused, does it work with no optimisation)
Comment 4 Christophe Saout 2005-05-27 09:33:54 UTC
> Also I would guess the gcc-4 issue is a compiler bug as the code looks valid.

No, it's not a compiler bug The older prelink simply couldn't cope with
.debug_loc sections which were introduced with gcc4. Just wanted that clarified. :)
Comment 5 Stefan Jones (RETIRED) gentoo-dev 2005-05-27 10:18:14 UTC
I do not mean the .debug_log being a compiler bug, I mean the goto statement not
compiling.
Comment 6 Christophe Saout 2005-05-27 10:31:56 UTC
Sorry, of course, yes.

Unfortunately that bug is still there with the latest gcc 4.0 snapshot.