[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/11111] New: 'defined in discarded section' linker error using gc
From: |
mahesh dot athi at gmail dot com |
Subject: |
[Bug ld/11111] New: 'defined in discarded section' linker error using gcc 4.1.2 and binutils 2.18 |
Date: |
21 Dec 2009 21:41:33 -0000 |
trying to compile c++ files into a shared library using gcc 4.1.2 and ld 2.18.
getting following error:
gcc -shared -dy -L/hwapps/dvg/4.5.3/lib/Linux -o ./lib/Linux/libathirtt.so -lc
-lm -lmdk ./obj/Linux/d.o ./obj/Linux/ds.o ./obj/Linux/dsa.o ./obj/Linux/s.o
./obj/Linux/sl.o ./obj/Linux/r.o ./obj/Linux/c.o ./obj/Linux/b.o
./obj/Linux/de.o ./obj/Linux/g.o ./obj/Linux/i.o ./obj/Linux/p.o
./obj/Linux/ra.o ./obj/Linux/re.o ./obj/Linux/unsolicited_trans.o
./obj/Linux/debug_port.o
`.L527' referenced in section `.rodata' of ./obj/Linux/unsolicited_trans.o:
defined in discarded section
`.gnu.linkonce.t._ZN17SRIOBFMUserPacket13RandomizeSizeEv' of
./obj/Linux/unsolicited_trans.o
`.L529' referenced in section `.rodata' of ./obj/Linux/unsolicited_trans.o:
defined in discarded section
`.gnu.linkonce.t._ZN17SRIOBFMUserPacket13RandomizeSizeEv' of
./obj/Linux/unsolicited_trans.o
`.L534' referenced in section `.rodata' of ./obj/Linux/unsolicited_trans.o:
defined in discarded section
`.gnu.linkonce.t._ZN17SRIOBFMUserPacket13RandomizeSizeEv' of
./obj/Linux/unsolicited_trans.o
`.L536' referenced in section `.rodata' of ./obj/Linux/unsolicited_trans.o:
defined in discarded section
`.gnu.linkonce.t._ZN17SRIOBFMUserPacket13RandomizeSizeEv' of
./obj/Linux/unsolicited_trans.o
`.L539' referenced in section `.rodata' of ./obj/Linux/unsolicited_trans.o:
defined in discarded section
`.gnu.linkonce.t._ZN17SRIOBFMUserPacket13RandomizeSizeEv' of
./obj/Linux/unsolicited_trans.o
`.L542' referenced in section `.rodata' of ./obj/Linux/unsolicited_trans.o:
defined in discarded section
`.gnu.linkonce.t._ZN17SRIOBFMUserPacket13RandomizeSizeEv' of
./obj/Linux/unsolicited_trans.o
collect2: ld returned 1 exit status
Any help would be appreciated!
--
Summary: 'defined in discarded section' linker error using gcc
4.1.2 and binutils 2.18
Product: binutils
Version: 2.18
Status: NEW
Severity: normal
Priority: P2
Component: ld
AssignedTo: unassigned at sources dot redhat dot com
ReportedBy: mahesh dot athi at gmail dot com
CC: bug-binutils at gnu dot org
http://sourceware.org/bugzilla/show_bug.cgi?id=11111
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
- [Bug ld/11111] New: 'defined in discarded section' linker error using gcc 4.1.2 and binutils 2.18,
mahesh dot athi at gmail dot com <=