[Bug ld/12772] relocations from discarded sections stay

2011-05-18 Thread grabli_2005 at mail dot ru
http://sourceware.org/bugzilla/show_bug.cgi?id=12772

lion grabli_2005 at mail dot ru changed:

   What|Removed |Added

 CC||grabli_2005 at mail dot ru

--- Comment #2 from lion grabli_2005 at mail dot ru 2011-05-18 09:33:37 UTC 
---
Works in what meaning?
I have same readelf -r output:
Relocation section '.rela.dyn' at offset 0x440 contains 4 entries:
  Offset  Info   Type   Sym. ValueSym. Name +
Addend
18c8  0008 R_X86_64_RELATIVE   
18c8
1868  00010006 R_X86_64_GLOB_DAT  __gmon_start__ +
0
1870  00050006 R_X86_64_GLOB_DAT  __cxa_finalize +
0
1878  00060006 R_X86_64_GLOB_DAT 
_Jv_RegisterClasses + 0

Relocation section '.rela.plt' at offset 0x4a0 contains 1 entries:
  Offset  Info   Type   Sym. ValueSym. Name +
Addend
1898  00050007 R_X86_64_JUMP_SLO  __cxa_finalize +
0

But readelf -s shows:
Symbol table '.dynsym' contains 12 entries:
   Num:Value  Size TypeBind   Vis  Ndx Name
 0:  0 NOTYPE  LOCAL  DEFAULT  UND
 1: 04c8 0 SECTION LOCAL  DEFAULT   10
 2:  0 NOTYPE  WEAK   DEFAULT  UND __gmon_start__
 3:  0 NOTYPE  WEAK   DEFAULT  UND _Jv_RegisterClasses
 4:  0 FUNCWEAK   DEFAULT  UND
__cxa_finalize@GLIBC_2.2.5 (2)
 5:  0 FUNCGLOBAL DEFAULT  UND getcwd@GLIBC_2.2.5
(2)
 6: 00201020 0 NOTYPE  GLOBAL DEFAULT  ABS _end
 7: 00201010 0 NOTYPE  GLOBAL DEFAULT  ABS _edata
 8: 00201010 0 NOTYPE  GLOBAL DEFAULT  ABS __bss_start
 9: 04c8 0 FUNCGLOBAL DEFAULT   10 _init
10: 062c16 FUNCGLOBAL DEFAULT   13 _fini
11: 05d023 FUNCGLOBAL DEFAULT   12 func

I not obvious to me that relocations is in blame here, but as in my original
report - getcwd dependency not discarded properly.

-- 
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


Re: gas-2.20.90.pot errors

2011-05-18 Thread Nick Clifton

Hi Jorma,

  OK - I have checked in the attached patch to address your concerns.

Cheers
  Nick

gas/ChangeLog
2011-05-18  Nick Clifton  ni...@redhat.com

* config/tc-arm.c (s_unreq): Reword warning message to make it
easier to translate.
* config/tc-ia64.c (md_show_usage): Add note for translators.
* configure.in (ALL_LINGUAS): Add fi.
* configure: Regenerate.
Index: gas/configure.in
===
RCS file: /cvs/src/src/gas/configure.in,v
retrieving revision 1.222
diff -u -3 -p -r1.222 configure.in
--- gas/configure.in	31 Dec 2010 11:00:56 -	1.222
+++ gas/configure.in	18 May 2011 09:34:10 -
@@ -618,7 +618,7 @@ AC_DEFINE_UNQUOTED(TARGET_OS,		${target
 AC_PROG_YACC
 AM_PROG_LEX
 
-ALL_LINGUAS=fr tr es rw id ru
+ALL_LINGUAS=fr tr es rw id ru fi
 ZW_GNU_GETTEXT_SISTER_DIR
 AM_PO_SUBDIRS
 
Index: gas/config/tc-arm.c
===
RCS file: /cvs/src/src/gas/config/tc-arm.c,v
retrieving revision 1.484
diff -u -3 -p -r1.484 tc-arm.c
--- gas/config/tc-arm.c	12 May 2011 12:41:44 -	1.484
+++ gas/config/tc-arm.c	18 May 2011 09:34:12 -
@@ -2412,7 +2412,7 @@ s_unreq (int a ATTRIBUTE_UNUSED)
   if (!reg)
 	as_bad (_(unknown register alias '%s'), name);
   else if (reg-builtin)
-	as_warn (_(ignoring attempt to undefine built-in register '%s'),
+	as_warn (_(ignoring attempt to use .unreq on fixed register name: '%s'),
 		 name);
   else
 	{
Index: gas/config/tc-ia64.c
===
RCS file: /cvs/src/src/gas/config/tc-ia64.c,v
retrieving revision 1.215
diff -u -3 -p -r1.215 tc-ia64.c
--- gas/config/tc-ia64.c	1 Apr 2011 08:56:21 -	1.215
+++ gas/config/tc-ia64.c	18 May 2011 09:34:13 -
@@ -7001,7 +7001,9 @@ IA-64 options:\n\
 			  unwind directive check (default -munwind-check=warning)\n\
   -mhint.b=[ok|warning|error]\n\
 			  hint.b check (default -mhint.b=error)\n\
-  -x | -xexplicit	  turn on dependency violation checking\n\
+  -x | -xexplicit	  turn on dependency violation checking\n), stream);
+  /* Note for translators: automagically can be translated as automatically here.  */
+  fputs (_(\
   -xauto		  automagically remove dependency violations (default)\n\
   -xnone		  turn off dependency violation checking\n\
   -xdebug		  debug dependency violation checker\n\
___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug ld/12763] [PATCH] Incorrect error when .tbss starts outside PT_LOAD segment

2011-05-18 Thread nickc at redhat dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=12763

Nick Clifton nickc at redhat dot com changed:

   What|Removed |Added

 Status|NEW |WAITING
 CC||nickc at redhat dot com

--- Comment #1 from Nick Clifton nickc at redhat dot com 2011-05-18 10:23:08 
UTC ---
Hi Marcus,

  Please could you create a small test case to reproduce this problem ?

  Looking at the current definition of ELF_SECTION_IN_SEGMENT I suspect that
the problem might have already been resolved.

Cheers
  Nick

-- 
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/12778] New: arm-linux-gnueabi-ld: segfault in elf32_arm_gc_sweep_hook

2011-05-18 Thread r.krypa at samsung dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=12778

   Summary: arm-linux-gnueabi-ld: segfault in
elf32_arm_gc_sweep_hook
   Product: binutils
   Version: 2.22 (HEAD)
Status: NEW
  Severity: normal
  Priority: P2
 Component: ld
AssignedTo: unassig...@sources.redhat.com
ReportedBy: r.kr...@samsung.com


Created attachment 5733
  -- http://sourceware.org/bugzilla/attachment.cgi?id=5733
Object file triggering the bug

binutils configured with --target=arm-linux-gnueabi fails while linking the
file I attached:

./ld/ld-new --gc-sections -pie -z relro test.o -o test
Segmentation fault


Information from gdb:

Program received signal SIGSEGV, Segmentation fault.
elf32_arm_gc_sweep_hook (abfd=0x8158288, info=0x813cac0, sec=0x81693b8,
relocs=0x817999c) at elf32-arm.c:12041
12041  for (pp = eh-dyn_relocs; (p = *pp) != NULL; pp = p-next)
(gdb) bt
#0  elf32_arm_gc_sweep_hook (abfd=0x8158288, info=0x813cac0, sec=0x81693b8,
relocs=0x817999c) at elf32-arm.c:12041
#1  0x080bef9f in elf_gc_sweep (abfd=0x8148c50, info=0x813cac0) at
elflink.c:11765
#2  bfd_elf_gc_sections (abfd=0x8148c50, info=0x813cac0) at elflink.c:12024
#3  0x0805b167 in lang_gc_sections () at ldlang.c:6299
#4  lang_process () at ldlang.c:6605
#5  0x0805e2b6 in main (argc=8, argv=0xb584) at ./ldmain.c:462

-- 
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/12768] Improve the error message for linking failure

2011-05-18 Thread pcarroll at codesourcery dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=12768

--- Comment #3 from Paul Carroll pcarroll at codesourcery dot com 2011-05-18 
10:47:55 UTC ---
No, Nick, I haven't submitted any kind of patch or such as yet.  I was waiting
on an internal company review first, before sending the fix upstream.  Your
comment about tying the reduced-memory option into whether the symbols are
stored sounds reasonable.  Odds are that it will become part of the patch.

-- 
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/11539] ld --gc-sections should work for PE-COFF on MinGW

2011-05-18 Thread vanboxem.ruben at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=11539

vanboxem.ruben at gmail dot com changed:

   What|Removed |Added

 CC||ktietz70 at googlemail dot
   ||com

-- 
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/12693] LTO on mingw target cause ld terminated with signal 11

2011-05-18 Thread vanboxem.ruben at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=12693

vanboxem.ruben at gmail dot com changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||WORKSFORME

--- Comment #2 from vanboxem.ruben at gmail dot com 2011-05-18 11:02:31 UTC ---
The segfault has been fixed some time ago on trunk. 2.21 still has the problem
though.

-- 
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/12763] [PATCH] Incorrect error when .tbss starts outside PT_LOAD segment

2011-05-18 Thread amodra at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=12763

Alan Modra amodra at gmail dot com changed:

   What|Removed |Added

 CC||amodra at gmail dot com

--- Comment #2 from Alan Modra amodra at gmail dot com 2011-05-18 11:24:19 
UTC ---
I think the patch in comment #1 will cause problems.  If VMA match for .tbss is
disabled then ELF_SECTION_IN_SEGMENT will allow .tbss in any and all PT_LOAD
segments.

-- 
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/12772] relocations from discarded sections stay

2011-05-18 Thread grabli_2005 at mail dot ru
http://sourceware.org/bugzilla/show_bug.cgi?id=12772

--- Comment #3 from lion grabli_2005 at mail dot ru 2011-05-18 11:43:47 UTC 
---
*It`s not obvious to me

-- 
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/12772] symbols from discarded sections relocs stay

2011-05-18 Thread matz at suse dot de
http://sourceware.org/bugzilla/show_bug.cgi?id=12772

Michael Matz matz at suse dot de changed:

   What|Removed |Added

 Status|WAITING |NEW

-- 
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/12772] symbols from discarded sections relocs stay

2011-05-18 Thread matz at suse dot de
http://sourceware.org/bugzilla/show_bug.cgi?id=12772

Michael Matz matz at suse dot de changed:

   What|Removed |Added

Summary|relocations from discarded  |symbols from discarded
   |sections stay   |sections relocs stay

--- Comment #4 from Michael Matz matz at suse dot de 2011-05-18 11:54:22 UTC 
---
Yeah, sorry, my title was wrong.  The relocations really are gone.  But the
symbol table entry will stay, even though nothing refers to it anymore
(ultimately this then leads to libraries being included that aren't used
by anything).

-- 
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/12778] arm-linux-gnueabi-ld: segfault in elf32_arm_gc_sweep_hook

2011-05-18 Thread cvs-commit at gcc dot gnu.org
http://sourceware.org/bugzilla/show_bug.cgi?id=12778

--- Comment #2 from cvs-commit at gcc dot gnu.org cvs-commit at gcc dot 
gnu.org 2011-05-18 13:36:18 UTC ---
CVSROOT:/cvs/src
Module name:src
Changes by:ni...@sourceware.org2011-05-18 13:36:12

Modified files:
bfd: ChangeLog elf32-arm.c 

Log message:
PR ld/12778
* elf32-arm.c (elf32_arm_gc_sweep_hook): Use the computed dynamic
reloc pointer.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/bfd/ChangeLog.diff?cvsroot=srcr1=1.5348r2=1.5349
http://sourceware.org/cgi-bin/cvsweb.cgi/src/bfd/elf32-arm.c.diff?cvsroot=srcr1=1.264r2=1.265

-- 
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/12778] arm-linux-gnueabi-ld: segfault in elf32_arm_gc_sweep_hook

2011-05-18 Thread nickc at redhat dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=12778

Nick Clifton nickc at redhat dot com changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||nickc at redhat dot com
 Resolution||FIXED

--- Comment #3 from Nick Clifton nickc at redhat dot com 2011-05-18 13:39:00 
UTC ---
Hi Rafal,

  Thanks for reporting this bug and tracking down the fix as well.  I have
checked in your proposed patch along with the changelog entry below.

Cheers
  Nick

bfd/ChangeLog
2011-05-18  RafaƂ Krypa  r.kr...@samsung.com

PR ld/12778
* elf32-arm.c (elf32_arm_gc_sweep_hook): Use the computed dynamic
reloc pointer.

-- 
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/12761] .gnu.warning.* doesn't work when building shared library

2011-05-18 Thread nickc at redhat dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=12761

--- Comment #1 from Nick Clifton nickc at redhat dot com 2011-05-18 13:41:37 
UTC ---
Created attachment 5735
  -- http://sourceware.org/bugzilla/attachment.cgi?id=5735
Generate warnings when .gnu.warning sections are encountered when building
shared libraries

-- 
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/12761] .gnu.warning.* doesn't work when building shared library

2011-05-18 Thread nickc at redhat dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=12761

Nick Clifton nickc at redhat dot com changed:

   What|Removed |Added

 Status|NEW |WAITING
 CC||nickc at redhat dot com

--- Comment #2 from Nick Clifton nickc at redhat dot com 2011-05-18 13:42:53 
UTC ---
Hi H.J.

  What do you think of the uploaded patch ?

  The change to allow the warning messages to be generated when building shared
libraries is very simple.  But it took a bit of work to update the linker
testsuite to cope with the new behaviour.

Cheers
  Nick

-- 
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/12761] .gnu.warning.* doesn't work when building shared library

2011-05-18 Thread hjl.tools at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=12761

H.J. Lu hjl.tools at gmail dot com changed:

   What|Removed |Added

 Status|WAITING |NEW

--- Comment #3 from H.J. Lu hjl.tools at gmail dot com 2011-05-18 13:52:13 
UTC ---
(In reply to comment #2)
 Hi H.J.
 
   What do you think of the uploaded patch ?
 
   The change to allow the warning messages to be generated when building 
 shared
 libraries is very simple.  But it took a bit of work to update the linker
 testsuite to cope with the new behaviour.
 

Very nice.  Thanks.

-- 
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 gas/12754] Untranslated ordinal names in config/tc-tic30.c

2011-05-18 Thread cvs-commit at gcc dot gnu.org
http://sourceware.org/bugzilla/show_bug.cgi?id=12754

--- Comment #1 from cvs-commit at gcc dot gnu.org cvs-commit at gcc dot 
gnu.org 2011-05-18 13:52:49 UTC ---
CVSROOT:/cvs/src
Module name:src
Changes by:ni...@sourceware.org2011-05-18 13:52:45

Modified files:
gas: ChangeLog 
gas/config : tc-tic30.c 

Log message:
PR gas/12754
* config/tc-tic30.c (ordinal_names): Allow translation of the
ordinal names.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gas/ChangeLog.diff?cvsroot=srcr1=1.4487r2=1.4488
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gas/config/tc-tic30.c.diff?cvsroot=srcr1=1.29r2=1.30

-- 
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 gas/12754] Untranslated ordinal names in config/tc-tic30.c

2011-05-18 Thread nickc at redhat dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=12754

Nick Clifton nickc at redhat dot com changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||nickc at redhat dot com
 Resolution||FIXED

--- Comment #2 from Nick Clifton nickc at redhat dot com 2011-05-18 13:59:30 
UTC ---
Hi Frederic,

  Thanks for reporting this problem.  I have checked in the obvious patch to
fix it.

Cheers
  Nick

-- 
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/12761] .gnu.warning.* doesn't work when building shared library

2011-05-18 Thread cvs-commit at gcc dot gnu.org
http://sourceware.org/bugzilla/show_bug.cgi?id=12761

--- Comment #4 from cvs-commit at gcc dot gnu.org cvs-commit at gcc dot 
gnu.org 2011-05-18 14:04:36 UTC ---
CVSROOT:/cvs/src
Module name:src
Changes by:ni...@sourceware.org2011-05-18 14:04:33

Modified files:
bfd: ChangeLog elflink.c 
ld/testsuite   : ChangeLog 
ld/testsuite/ld-elf: shared.exp 
ld/testsuite/lib: ld-lib.exp 

Log message:
PR ld/12761
* elflink.c (elf_link_add_object_symbols): Process .gnu.warning
sections when building shared libraries.

* lib/ld-lib.exp (run_cc_link_tests): Add an optional 8th
parameter - an expected warning message from the linker.
* ld-elf/shared.exp (build_tests): Expect a warning message when
building the libbarw.so library.

* ld-elf/shared.exp: Run library building tests even when not
building a native toolchain.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/bfd/ChangeLog.diff?cvsroot=srcr1=1.5349r2=1.5350
http://sourceware.org/cgi-bin/cvsweb.cgi/src/bfd/elflink.c.diff?cvsroot=srcr1=1.404r2=1.405
http://sourceware.org/cgi-bin/cvsweb.cgi/src/ld/testsuite/ChangeLog.diff?cvsroot=srcr1=1.1407r2=1.1408
http://sourceware.org/cgi-bin/cvsweb.cgi/src/ld/testsuite/ld-elf/shared.exp.diff?cvsroot=srcr1=1.15r2=1.16
http://sourceware.org/cgi-bin/cvsweb.cgi/src/ld/testsuite/lib/ld-lib.exp.diff?cvsroot=srcr1=1.82r2=1.83

-- 
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/12761] .gnu.warning.* doesn't work when building shared library

2011-05-18 Thread nickc at redhat dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=12761

Nick Clifton nickc at redhat dot com changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED

--- Comment #5 from Nick Clifton nickc at redhat dot com 2011-05-18 14:07:06 
UTC ---
Patch checked in.

-- 
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/12772] symbols from discarded sections relocs stay

2011-05-18 Thread amodra at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=12772

Alan Modra amodra at gmail dot com changed:

   What|Removed |Added

 CC||amodra at gmail dot com
   Severity|normal  |enhancement

--- Comment #5 from Alan Modra amodra at gmail dot com 2011-05-18 15:36:45 
UTC ---
This optimisation could be done in a target gc_sweep_symbol hook.  You can't do
so in the generic ELF code because you'd need to look at plt, got and dyn_reloc
fields of the sym.

-- 
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/12779] *** glibc detected *** /usr/bin/ld: free(): invalid size: 0x0ea8ac18 ***

2011-05-18 Thread orion at cora dot nwra.com
http://sourceware.org/bugzilla/show_bug.cgi?id=12779

Orion Poplawski orion at cora dot nwra.com changed:

   What|Removed |Added

  Component|binutils|ld

-- 
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 binutils/12753] nm -g does not include unique global symbols

2011-05-18 Thread cvs-commit at gcc dot gnu.org
http://sourceware.org/bugzilla/show_bug.cgi?id=12753

--- Comment #1 from cvs-commit at gcc dot gnu.org cvs-commit at gcc dot 
gnu.org 2011-05-18 16:35:10 UTC ---
CVSROOT:/cvs/src
Module name:src
Changes by:ni...@sourceware.org2011-05-18 16:35:03

Modified files:
binutils   : ChangeLog nm.c 
binutils/doc   : binutils.texi 
binutils/testsuite: ChangeLog 
binutils/testsuite/binutils-all: nm.exp 
binutils/testsuite/lib: utils-lib.exp 

Log message:
PR binutils/12753
* nm.c (filter_symbols): Treat unique symbols as global symbols.
* doc/binutils.texi (nm): Mention that some lowercase letters
actually indicate global symbols.

* lib/utils-lib.exp (run_dump_test): Allow nm as a program.
* binutils-all/nm.exp: Test running nm -g on an object file
containing a unique symbol.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/binutils/ChangeLog.diff?cvsroot=srcr1=1.1799r2=1.1800
http://sourceware.org/cgi-bin/cvsweb.cgi/src/binutils/nm.c.diff?cvsroot=srcr1=1.66r2=1.67
http://sourceware.org/cgi-bin/cvsweb.cgi/src/binutils/doc/binutils.texi.diff?cvsroot=srcr1=1.178r2=1.179
http://sourceware.org/cgi-bin/cvsweb.cgi/src/binutils/testsuite/ChangeLog.diff?cvsroot=srcr1=1.236r2=1.237
http://sourceware.org/cgi-bin/cvsweb.cgi/src/binutils/testsuite/binutils-all/nm.exp.diff?cvsroot=srcr1=1.5r2=1.6
http://sourceware.org/cgi-bin/cvsweb.cgi/src/binutils/testsuite/lib/utils-lib.exp.diff?cvsroot=srcr1=1.23r2=1.24

-- 
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 binutils/12753] nm -g does not include unique global symbols

2011-05-18 Thread nickc at redhat dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=12753

Nick Clifton nickc at redhat dot com changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||nickc at redhat dot com
 Resolution||FIXED

--- Comment #2 from Nick Clifton nickc at redhat dot com 2011-05-18 16:36:52 
UTC ---
Hi Kim,

  Thanks for reporting this bug.  I have checked in a patch to fix it, as well
as a correction to the documentation to explain that not all lowercase letters
refer to local symbols.  I have also extended the binutils testsuite to cover
this scenario, so the problem should not reoccur.

Cheers
  Nick

-- 
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/12763] [PATCH] Incorrect error when .tbss starts outside PT_LOAD segment

2011-05-18 Thread marcus at mc dot pp.se
http://sourceware.org/bugzilla/show_bug.cgi?id=12763

--- Comment #3 from Marcus Comstedt marcus at mc dot pp.se 2011-05-18 
16:56:24 UTC ---
@Nick:
Thank you for looking at this.  My test case is the following program:

static __thread char baz=17;
static __thread char foo[1024] __attribute__((aligned(1024)));
int main() { return 0; }

Compiling this (without optimization) yields:

Sections:
Idx Name  Size  VMA   LMA   File off  Algn
[...]
 17 .tdata0001  00032000  00032000  00022000  2**10
  CONTENTS, ALLOC, LOAD, DATA, THREAD_LOCAL
 18 .tbss 0b80  00032400  00032400  00022001  2**10
  ALLOC, THREAD_LOCAL
[...]

and

Program Header:
[...]
LOAD off0x0002 vaddr 0x0003 paddr
0x0003 align 2**16
 filesz 0x2001 memsz 0x2001 flags rw-
[...]

ld complains because 32400  3+2001.

@Alan:
Indeed it will allow that.  And that would be a problem... why exactly?
.tbss is never loaded in the traditional sense; since it has no loading
requirements its loading requirements (none) are fulfilled by any and all
PT_LOAD segments, and so it is in them in the same way that the empty set is
a subset of any set.

-- 
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/12772] linker failed to remove all dead code dependency properly

2011-05-18 Thread grabli_2005 at mail dot ru
http://sourceware.org/bugzilla/show_bug.cgi?id=12772

lion grabli_2005 at mail dot ru changed:

   What|Removed |Added

Summary|symbols from discarded  |linker failed to remove all
   |sections relocs stay|dead code dependency
   ||properly

-- 
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/12779] *** glibc detected *** /usr/bin/ld: free(): invalid size: 0x0ea8ac18 ***

2011-05-18 Thread hjl.tools at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=12779

H.J. Lu hjl.tools at gmail dot com changed:

   What|Removed |Added

 Status|NEW |WAITING
 CC||hjl.tools at gmail dot com

--- Comment #1 from H.J. Lu hjl.tools at gmail dot com 2011-05-18 21:05:41 
UTC ---
If you can provide ALLL linker inputs, I will take a look.

-- 
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/12779] *** glibc detected *** /usr/bin/ld: free(): invalid size: 0x0ea8ac18 ***

2011-05-18 Thread orion at cora dot nwra.com
http://sourceware.org/bugzilla/show_bug.cgi?id=12779

--- Comment #2 from Orion Poplawski orion at cora dot nwra.com 2011-05-18 
21:09:02 UTC ---
Is there a tool that would help in collecting all of them?

-- 
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/12779] *** glibc detected *** /usr/bin/ld: free(): invalid size: 0x0ea8ac18 ***

2011-05-18 Thread orion at cora dot nwra.com
http://sourceware.org/bugzilla/show_bug.cgi?id=12779

--- Comment #3 from Orion Poplawski orion at cora dot nwra.com 2011-05-18 
21:19:03 UTC ---
Well, it's rather large (142M), but:

http://sw.cora.nwra.com/tmp/ld.tar.gz

Should have everything. Build was being done in
builddir/build/BUILD/gdl-0.9.1/build-python/src, and the .libs directory in
there is the one referenced.  /usr/lib is also included.

-- 
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/12779] *** glibc detected *** /usr/bin/ld: free(): invalid size: 0x0ea8ac18 ***

2011-05-18 Thread hjl.tools at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=12779

--- Comment #4 from H.J. Lu hjl.tools at gmail dot com 2011-05-18 21:39:45 
UTC ---
(In reply to comment #3)
 Well, it's rather large (142M), but:
 
 http://sw.cora.nwra.com/tmp/ld.tar.gz
 
 Should have everything. Build was being done in
 builddir/build/BUILD/gdl-0.9.1/build-python/src, and the .libs directory in
 there is the one referenced.  /usr/lib is also included.

Please show me the output of g++ -v 

-- 
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/12779] *** glibc detected *** /usr/bin/ld: free(): invalid size: 0x0ea8ac18 ***

2011-05-18 Thread orion at cora dot nwra.com
http://sourceware.org/bugzilla/show_bug.cgi?id=12779

--- Comment #5 from Orion Poplawski orion at cora dot nwra.com 2011-05-18 
21:44:24 UTC ---
Using built-in specs.
COLLECT_GCC=/usr/bin/g++
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/i686-redhat-linux/4.6.0/lto-wrapper
Target: i686-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
--infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla
--enable-bootstrap --enable-shared --enable-threads=posix
--enable-checking=release --with-system-zlib --enable-__cxa_atexit
--disable-libunwind-exceptions --enable-gnu-unique-object
--enable-linker-build-id
--enable-languages=c,c++,objc,obj-c++,java,fortran,ada,go,lto --enable-plugin
--enable-java-awt=gtk --disable-dssi
--with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre
--enable-libgcj-multifile --enable-java-maintainer-mode
--with-ecj-jar=/usr/share/java/eclipse-ecj.jar --disable-libjava-multilib
--with-ppl --with-cloog --with-tune=generic --with-arch=i686
--build=i686-redhat-linux
Thread model: posix
gcc version 4.6.0 20110428 (Red Hat 4.6.0-6) (GCC) 
COMPILER_PATH=/usr/libexec/gcc/i686-redhat-linux/4.6.0/:/usr/libexec/gcc/i686-redhat-linux/4.6.0/:/usr/libexec/gcc/i686-redhat-linux/:/usr/lib/gcc/i686-redhat-linux/4.6.0/:/usr/lib/gcc/i686-redhat-linux/
LIBRARY_PATH=/usr/lib/gcc/i686-redhat-linux/4.6.0/:/usr/lib/gcc/i686-redhat-linux/4.6.0/../../../:/lib/:/usr/lib/
COLLECT_GCC_OPTIONS='-v' '-fPIC' '-D' 'PIC' '-shared' '-nostdlib'
'-L/usr/X11R6/lib64' '-L/usr/X11R6/lib' '-L/usr/lib/hdf' '-L/usr/lib/hdf5'
'-L/usr/lib/gcc/i686-redhat-linux/4.6.0'
'-L/usr/lib/gcc/i686-redhat-linux/4.6.0/../../..' '-O2' '-m32' '-march=i686'
'-mtune=atom' '-pthread' '-pthread' '-o' '.libs/libgdl.so.0.0.0'
'-shared-libgcc'
 /usr/libexec/gcc/i686-redhat-linux/4.6.0/collect2 --build-id --no-add-needed
--eh-frame-hdr -m elf_i386 --hash-style=gnu -shared -o .libs/libgdl.so.0.0.0
-L/usr/X11R6/lib64 -L/usr/X11R6/lib -L/usr/lib/hdf -L/usr/lib/hdf5
-L/usr/lib/gcc/i686-redhat-linux/4.6.0
-L/usr/lib/gcc/i686-redhat-linux/4.6.0/../../..
-L/usr/lib/gcc/i686-redhat-linux/4.6.0
-L/usr/lib/gcc/i686-redhat-linux/4.6.0/../../..
/usr/lib/gcc/i686-redhat-linux/4.6.0/../../../crti.o
/usr/lib/gcc/i686-redhat-linux/4.6.0/crtbeginS.o .libs/assocdata.o
.libs/basic_fun_cl.o .libs/basic_fun.o .libs/basic_fun_jmg.o .libs/basic_op.o
.libs/basic_pro.o .libs/basic_pro_jmg.o .libs/CFMTLexer.o .libs/color.o
.libs/convert2.o .libs/datatypes.o .libs/dcommon.o .libs/dcompiler.o
.libs/default_io.o .libs/dinterpreter.o .libs/dnode.o .libs/dpro.o
.libs/dstructdesc.o .libs/dstructgdl.o .libs/dvar.o .libs/envt.o .libs/extrat.o
.libs/FMTIn.o .libs/FMTLexer.o .libs/fmtnode.o .libs/FMTOut.o .libs/FMTParser.o
.libs/gdleventhandler.o .libs/gdlexception.o .libs/gdlgstream.o
.libs/GDLInterpreter.o .libs/GDLLexer.o .libs/GDLParser.o .libs/gdlpsstream.o
.libs/gdlsvgstream.o .libs/gdlpython.o .libs/GDLTreeParser.o
.libs/gdlwinstream.o .libs/gdlxstream.o .libs/getfmtast.o .libs/graphics.o
.libs/gsl_fun.o .libs/ifmt.o .libs/initct.o .libs/initsysvar.o .libs/io.o
.libs/libinit_cl.o .libs/libinit.o .libs/libinit_jmg.o .libs/math_fun.o
.libs/math_fun_jmg.o .libs/math_utl.o .libs/ncdf_att_cl.o .libs/ncdf_cl.o
.libs/ncdf_dim_cl.o .libs/ncdf_var_cl.o .libs/new.o .libs/objects.o
.libs/ofmt.o .libs/math_fun_ac.o .libs/libinit_ac.o .libs/math_fun_gm.o
.libs/libinit_gm.o .libs/math_fun_ng.o .libs/libinit_ng.o .libs/plotting.o
.libs/print.o .libs/print_tree.o .libs/read.o .libs/str.o .libs/terminfo.o
.libs/topython.o .libs/typetraits.o .libs/hdf_fun.o .libs/hdf_pro.o
.libs/magick_cl.o .libs/gdlwidget.o .libs/widget.o .libs/basegdl.o
.libs/hdf5_fun.o .libs/libinit_mes.o .libs/file.o .libs/image.o
.libs/gdljournal.o .libs/convol.o .libs/convol_inc0.o .libs/convol_inc1.o
.libs/convol_inc2.o .libs/sigfpehandler.o .libs/gdlzstream.o .libs/arrayindex.o
.libs/fftw.o .libs/mpi.o .libs/plot3d_nr.o .libs/grib.o .libs/prognode.o
.libs/prognodeexpr.o .libs/datatypesref.o .libs/lapack.o .libs/gshhs.o
.libs/newprognode.o .libs/pythongdl.o -lantlr -lX11 -lncurses -ldl -lreadline
-lgsl -lgslcblas -lplplotd -lplplotcxxd -lwx_gtk2u_richtext-2.8
-lwx_gtk2u_aui-2.8 -lwx_gtk2u_xrc-2.8 -lwx_gtk2u_qa-2.8 -lwx_gtk2u_html-2.8
-lwx_gtk2u_adv-2.8 -lwx_gtk2u_core-2.8 -lwx_baseu_xml-2.8 -lwx_baseu_net-2.8
-lwx_baseu-2.8 -lMagick++ -lMagickCore -lnetcdf /usr/lib/hdf/libmfhdf.a
/usr/lib/hdf/libdf.a -ljpeg -lz -lhdf5 -lfftw3 -lfftw3f -lpython2.7 -ludunits2
-lgrib_api -ljasper -lstdc++ -lm -lc -lgcc_s
/usr/lib/gcc/i686-redhat-linux/4.6.0/crtendS.o
/usr/lib/gcc/i686-redhat-linux/4.6.0/../../../crtn.o -z muldefs -soname
libgdl.so.0
collect2: ld terminated with signal 6 [Aborted]
*** glibc detected *** /usr/bin/ld: free(): invalid size: 0x0f20ec18 ***

-- 
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 ld/12779] *** glibc detected *** /usr/bin/ld: free(): invalid size: 0x0ea8ac18 ***

2011-05-18 Thread hjl.tools at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=12779

--- Comment #6 from H.J. Lu hjl.tools at gmail dot com 2011-05-18 22:07:49 
UTC ---
(In reply to comment #3)
 Well, it's rather large (142M), but:
 
 http://sw.cora.nwra.com/tmp/ld.tar.gz
 
 Should have everything. Build was being done in
 builddir/build/BUILD/gdl-0.9.1/build-python/src, and the .libs directory in
 there is the one referenced.  /usr/lib is also included.

I also need /lib/lib*.so.*

-- 
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/12779] *** glibc detected *** /usr/bin/ld: free(): invalid size: 0x0ea8ac18 ***

2011-05-18 Thread orion at cora dot nwra.com
http://sourceware.org/bugzilla/show_bug.cgi?id=12779

--- Comment #7 from Orion Poplawski orion at cora dot nwra.com 2011-05-18 
22:11:00 UTC ---
Ah, yes: http://sw.cora.nwra.com/tmp/ld.lib.tar.gz

-- 
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/12779] *** glibc detected *** /usr/bin/ld: free(): invalid size: 0x0ea8ac18 ***

2011-05-18 Thread hjl.tools at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=12779

--- Comment #8 from H.J. Lu hjl.tools at gmail dot com 2011-05-18 22:19:15 
UTC ---
(In reply to comment #7)
 Ah, yes: http://sw.cora.nwra.com/tmp/ld.lib.tar.gz

It is incompleted, missing files like libm-2.13.90.so.
I need /lib/lib*.so*

-- 
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/12779] *** glibc detected *** /usr/bin/ld: free(): invalid size: 0x0ea8ac18 ***

2011-05-18 Thread orion at cora dot nwra.com
http://sourceware.org/bugzilla/show_bug.cgi?id=12779

--- Comment #9 from Orion Poplawski orion at cora dot nwra.com 2011-05-18 
22:21:38 UTC ---
Sorry, rebuilt the archive.

-- 
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/12763] [PATCH] Incorrect error when .tbss starts outside PT_LOAD segment

2011-05-18 Thread amodra at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=12763

Alan Modra amodra at gmail dot com changed:

   What|Removed |Added

 Status|WAITING |ASSIGNED
 AssignedTo|unassigned at sources dot   |amodra at gmail dot com
   |redhat.com  |

--- Comment #4 from Alan Modra amodra at gmail dot com 2011-05-18 23:54:30 
UTC ---
I was thinking that it would make readelf -l display the .tbss section as
belonging to all load segments, but that isn't the case, so s/will/might/ in my
previous comment.  I'm still concerned that changing ELF_SECTION_IN_SEGMENT
like this will break objcopy

-- 
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/12763] [PATCH] Incorrect error when .tbss starts outside PT_LOAD segment

2011-05-18 Thread amodra at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=12763

Alan Modra amodra at gmail dot com changed:

   What|Removed |Added

 CC|amodra at gmail dot com |

--- Comment #5 from Alan Modra amodra at gmail dot com 2011-05-19 01:26:44 
UTC ---
Heh, current objcopy/strip breaks on your testcase.

-- 
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