Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 88022 - Link time errors: `.LAAAA' referenced in section `.rodata' of BBBB.o: defined in discarded section `.gnu.linkonce.t.CCCC' of DDDD.o with recent gcc (3.4.3) and binutils (2.15.92.0.2)
Summary: Link time errors: `.LAAAA' referenced in section `.rodata' of BBBB.o: defined...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All All
: High major
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
: 142109 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-04-05 04:15 UTC by Ed Catmur
Modified: 2006-08-31 04:11 UTC (History)
1 user (show)

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


Attachments
3.4.3/jumptables-fix.patch (jumptables-fix.patch,7.93 KB, patch)
2005-04-05 04:23 UTC, Ed Catmur
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ed Catmur 2005-04-05 04:15:14 UTC
When compiling e.g. LyX, at link time hundreds of errors along the lines of:

`.LAAAA' referenced in section `.rodata' of BBBB.o: defined in discarded section `.gnu.linkonce.t.CCCC' of DDDD.o

This is known upstream, at
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16625

This is NOT a bug in the program being compiled, but in gcc/binutils interaction, see e.g. the testcase at
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16849

I have tried applying the patch at 
http://gcc.gnu.org/ml/gcc-patches/2004-08/msg00653.html
and can confirm that it 
a) fixes the testcase at http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16849
b) allows LyX to compile/link.

I therefore suggest that the patch at http://gcc.gnu.org/ml/gcc-patches/2004-08/msg00653.html should be applied. 
It needs a little massaging to apply cleanly to 3.4.3.20050110-r1 sources.
Comment 1 Ed Catmur 2005-04-05 04:23:53 UTC
Created attachment 55345 [details, diff]
3.4.3/jumptables-fix.patch

Patch (to gcc) from http://gcc.gnu.org/ml/gcc-patches/2004-08/msg00653.html
Minor edit to apply cleanly to 3.4.3.20050110 sources.
Comment 2 SpanKY gentoo-dev 2005-04-05 17:37:36 UTC
although that doesnt appear to the final patch, it does seem to be the smallest and can probably be substituted until 3.4.4 when the real fix is integrated upstream

what version of binutils did you test with ?
Comment 3 Ed Catmur 2005-04-06 01:10:57 UTC
binutils: 2.15.92.0.2-r7
gcc: 3.4.3.20050110-r1
Comment 4 SpanKY gentoo-dev 2005-04-07 19:48:54 UTC
ok, this also resolves our boost issues we've been having lately :)

added to 3.4.3.20050110-r2
Comment 5 Simon Stelling (RETIRED) gentoo-dev 2006-08-31 04:11:17 UTC
*** Bug 142109 has been marked as a duplicate of this bug. ***