[Bug ld/14732] New: ld-gc/gc.exp FAILs with --gc-sections, pr14265

2012-10-17 Thread tschwinge at sourceware dot org


http://sourceware.org/bugzilla/show_bug.cgi?id=14732



 Bug #: 14732

   Summary: ld-gc/gc.exp FAILs with --gc-sections, pr14265

   Product: binutils

   Version: 2.24 (HEAD)

Status: NEW

  Severity: minor

  Priority: P2

 Component: ld

AssignedTo: unassig...@sourceware.org

ReportedBy: tschwi...@sourceware.org

Classification: Unclassified

Target: mips-linux-gnu





For MIPS GNU/Linux I see:



FAIL: --gc-sections with --defsym

FAIL: --gc-sections with KEEP



From ld.log (slightly edited):



[...]

mips-linux-gnu-ld [...]  --gc-sections -e main tmpdir/pr11218-2.o

tmpdir/pr11218-1.so -o tmpdir/dump tmpdir/dump0.o

mips-linux-gnu-ld: tmpdir/dump0.o: warning: linking abicalls files with

non-abicalls files

tmpdir/pr11218-2.o: undefined reference to

`unresolved_detected_at_runtime_not_at_linktime'

failed with: mips-linux-gnu-ld: tmpdir/dump0.o: warning: linking abicalls

files with non-abicalls files

tmpdir/pr11218-2.o: undefined reference to

`unresolved_detected_at_runtime_not_at_linktime', expected: undefined

reference to `unresolved_detected_at_runtime_not_at_linktime'

mips-linux-gnu-ld: tmpdir/dump0.o: warning: linking abicalls files with

non-abicalls files

tmpdir/pr11218-2.o: undefined reference to

`unresolved_detected_at_runtime_not_at_linktime'

PASS: --gc-sections with shared library

mips-linux-gnu-gcc [...] -g -O2 -fno-unwind-tables -ffunction-sections

-fdata-sections -c [...]/ld/testsuite/ld-gc/pr13683.c -o tmpdir/pr13683.o

mips-linux-gnu-as-o tmpdir/dump0.o [...]/ld/testsuite/ld-gc/dummy.s

mips-linux-gnu-ld  -L[...]/ld/testsuite/ld-gc  --gc-sections -e main

--defsym foo=foo2 tmpdir/pr13683.o -o tmpdir/dump tmpdir/dump0.o

mips-linux-gnu-ld: tmpdir/dump0.o: warning: linking abicalls files with

non-abicalls files

succeeded with: mips-linux-gnu-ld: tmpdir/dump0.o: warning: linking

abicalls files with non-abicalls files, expected: 

mips-linux-gnu-ld: tmpdir/dump0.o: warning: linking abicalls files with

non-abicalls files

succeeded with: mips-linux-gnu-ld: tmpdir/dump0.o: warning: linking

abicalls files with non-abicalls files, expected: 

FAIL: --gc-sections with --defsym

mips-linux-gnu-gcc [...] -g -O2 -fno-unwind-tables -ffunction-sections

-fdata-sections -c [...]/ld/testsuite/ld-gc/pr14265.c -o tmpdir/pr14265.o

mips-linux-gnu-as-o tmpdir/dump0.o [...]/ld/testsuite/ld-gc/dummy.s

mips-linux-gnu-ld [...] --gc-sections -T pr14265.t -e 0 tmpdir/pr14265.o -o

tmpdir/dump tmpdir/dump0.o

mips-linux-gnu-ld: tmpdir/dump0.o: warning: linking abicalls files with

non-abicalls files

succeeded with: mips-linux-gnu-ld: tmpdir/dump0.o: warning: linking

abicalls files with non-abicalls files, expected: 

mips-linux-gnu-ld: tmpdir/dump0.o: warning: linking abicalls files with

non-abicalls files

succeeded with: mips-linux-gnu-ld: tmpdir/dump0.o: warning: linking

abicalls files with non-abicalls files, expected: 

FAIL: --gc-sections with KEEP



-- 

Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email

--- You are receiving this mail because: ---

You are on the CC list for the bug.

___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug gold/14726] _init and _fini garbage collected

2012-10-17 Thread cvs-commit at gcc dot gnu.org


http://sourceware.org/bugzilla/show_bug.cgi?id=14726



--- Comment #1 from cvs-commit at gcc dot gnu.org cvs-commit at gcc dot 
gnu.org 2012-10-17 11:58:43 UTC ---

CVSROOT:/cvs/src

Module name:src

Changes by:amo...@sourceware.org2012-10-17 11:58:39



Modified files:

gold   : ChangeLog gold.cc 



Log message:

PR gold/14726

* gold.cc (queue_middle_tasks): Call gc_mark_symbol on _init and _fini.



Patches:

http://sourceware.org/cgi-bin/cvsweb.cgi/src/gold/ChangeLog.diff?cvsroot=srcr1=1.969r2=1.970

http://sourceware.org/cgi-bin/cvsweb.cgi/src/gold/gold.cc.diff?cvsroot=srcr1=1.102r2=1.103



-- 

Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email

--- You are receiving this mail because: ---

You are on the CC list for the bug.

___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug ld/14736] New: probable bug in elf32-microblaze.c:microblaze_elf_relax_section

2012-10-17 Thread tromey at redhat dot com


http://sourceware.org/bugzilla/show_bug.cgi?id=14736



 Bug #: 14736

   Summary: probable bug in

elf32-microblaze.c:microblaze_elf_relax_section

   Product: binutils

   Version: unspecified

Status: NEW

  Severity: normal

  Priority: P2

 Component: ld

AssignedTo: unassig...@sourceware.org

ReportedBy: tro...@redhat.com

Classification: Unclassified





I happened to build bfd with clang and it found this:



../../archer/bfd/elf32-microblaze.c:1744:21: warning: use of unary operator

that may be intended as compound assignment (-=)

isym-st_value =- calc_fixup (isym-st_value, sec);

   ^~



Based on other uses of calc_fixup, I think clang is correct and this

should be -= instead.



-- 

Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email

--- You are receiving this mail because: ---

You are on the CC list for the bug.

___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug ld/14736] probable bug in elf32-microblaze.c:microblaze_elf_relax_section

2012-10-17 Thread vapier at gentoo dot org


http://sourceware.org/bugzilla/show_bug.cgi?id=14736



Mike Frysinger vapier at gentoo dot org changed:



   What|Removed |Added



URL||http://sourceware.org/ml/bi

   ||nutils/2012-10/msg00124.htm

   ||l



--- Comment #1 from Mike Frysinger vapier at gentoo dot org 2012-10-17 
19:10:20 UTC ---

david/edgar have posted a fix for this recently



http://sourceware.org/ml/binutils/2012-10/msg00124.html



-- 

Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email

--- You are receiving this mail because: ---

You are on the CC list for the bug.

___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug gold/14727] --gc-sections deletes section referenced from .eh_frame

2012-10-17 Thread cvs-commit at gcc dot gnu.org


http://sourceware.org/bugzilla/show_bug.cgi?id=14727



--- Comment #2 from cvs-commit at gcc dot gnu.org cvs-commit at gcc dot 
gnu.org 2012-10-18 05:36:07 UTC ---

CVSROOT:/cvs/src

Module name:src

Changes by:amo...@sourceware.org2012-10-18 05:36:02



Modified files:

gold   : ChangeLog object.cc 



Log message:

PR gold/14727

* object.cc (Relobj::is_section_name_included): Also match

.sdata personality section.



Patches:

http://sourceware.org/cgi-bin/cvsweb.cgi/src/gold/ChangeLog.diff?cvsroot=srcr1=1.972r2=1.973

http://sourceware.org/cgi-bin/cvsweb.cgi/src/gold/object.cc.diff?cvsroot=srcr1=1.160r2=1.161



-- 

Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email

--- You are receiving this mail because: ---

You are on the CC list for the bug.

___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils