[Bug ld/14058] Internal overflow error, on 128kB FLASH with no relaxation

2012-05-04 Thread gjl at gcc dot gnu.org
http://sourceware.org/bugzilla/show_bug.cgi?id=14058

--- Comment #7 from Georg-Johann Lay gjl at gcc dot gnu.org 2012-05-04 
13:42:39 UTC ---
(In reply to comment #6)

 The original bug report IMO contained everything needed to reproduce the bug
 and to assess it as different from the trampolines high case, without the
 need to read the avrfreaks.net thread.

 [...]
 
 Moreover, I also believe that absolute placement of labels through .org
 (however deprecated it is for real life usage) is more illustrative of the
 underlying reason than your .space solution. Also the usage of --debug-stubs
 switch is not coincidental.

The reduced example from comment #4 removes external dependencies like

* avr-gcc
* crtmxxx.o from AVR-LibC
* Command options passed like -Tdata=

Please note that GCC and AVR-LibC are not part of binutils, so that I worked
out an example without these external dependencies.

Also note that /we/ want something from the binutils developers (I am not one
of them), in particular to fix problems. They do not want something from /us/.
It's us who need their help, knowledge, experience, time and pacience.

To help the developes fix a problem, we should not use external stuff, just as
an #include avr/io.h or #include lcd.h might deter a GCC developer from
tracking an avr-gcc issue. We should always strive to have no external
dependencies or references and self-contained and comprehensible reports.

For a binutils developer, the difference between two targets is just to switch
from --target=foo to --target=bar. Many stuff in binutils is /not/ AVR-related,
so we basically exclude all developers that would help with avr-binutils
problems that are not familiar with avr-gcc or want to install MS-windows
distributions or build AVR-Libc. I just stripped external stuff in order to
/not/ exclude any binutils developers.

As I played with the test case, I used .space just because I don't know the
semantics of .org; in particular you linked against crt so that the very code
startes after 0x100 and then there was an .org 0x100 in the code. So no drama
here.

Concerning the relatedness to PR13812 it might very well be the case that I am
plain wrong with my conclusions/analysis from there. It might be just as well
be the case that it's completely unrelated to shifting stubs out of segment
and instead is caused by using gs() targeting different segments as from this
PR.

-- 
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/14052] binutils 2.22.52.0.2 breaks 3.3.x kernel on i686

2012-05-04 Thread hjl.tools at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=14052

--- Comment #13 from H.J. Lu hjl.tools at gmail dot com 2012-05-04 15:37:54 
UTC ---
(In reply to comment #12)
 Created attachment 6389 [details]
 A new patch
 
 This patch reverts the PR 13621 change and keeps the zero size
 section if there is a symbol for it.

Please verify if this patch works.

-- 
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/14052] binutils 2.22.52.0.2 breaks 3.3.x kernel on i686

2012-05-04 Thread bagg...@pld-linux.org
http://sourceware.org/bugzilla/show_bug.cgi?id=14052

--- Comment #14 from Jan Rękorajski bagg...@pld-linux.org 2012-05-04 16:55:40 
UTC ---
(In reply to comment #13)
 (In reply to comment #12)
  Created attachment 6389 [details]
  A new patch
  
  This patch reverts the PR 13621 change and keeps the zero size
  section if there is a symbol for it.
 
 Please verify if this patch works.

Works for me. kernel 3.3.4 built with this patch runs fine.

FYI:
c15a3000 T __init_begin
c162d000 T __init_end

-- 
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/13558] binutils 2.22 v. AIX 6.1 -- build fails with large-file support problems (and mkdtemp confusion)

2012-05-04 Thread skunk at iskunk dot org
http://sourceware.org/bugzilla/show_bug.cgi?id=13558

Daniel Richard G. skunk at iskunk dot org changed:

   What|Removed |Added

 CC||skunk at iskunk dot org

--- Comment #3 from Daniel Richard G. skunk at iskunk dot org 2012-05-04 
20:38:59 UTC ---
The binutils CVS source is rife with this problem as well. Aside from syslex.c,
the following files do not handle config.h and/or sysdep.h correctly, and fail
to build on AIX with the same class of errors as in the original report:

bfd/aout-cris.c
bfd/aout-ns32k.c
bfd/aout-sparcle.c
bfd/aout0.c
bfd/coff-stgo32.c
bfd/cpu-lm32.c
bfd/cpu-microblaze.c
bfd/cpu-score.c
bfd/cpu-tilegx.c
bfd/cpu-tilepro.c
bfd/elf32-lm32.c
bfd/elf32-microblaze.c
bfd/elf32-score7.c
bfd/elf32-tilepro.c
bfd/elfxx-tilegx.c
bfd/nlm32-ppc.c
bfd/ns32knetbsd.c
bfd/sunos.c

-- 
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/14052] binutils 2.22.52.0.2 breaks 3.3.x kernel on i686

2012-05-04 Thread amodra at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=14052

Alan Modra amodra at gmail dot com changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED

--- Comment #16 from Alan Modra amodra at gmail dot com 2012-05-05 04:52:02 
UTC ---
Fixed.

-- 
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/14052] binutils 2.22.52.0.2 breaks 3.3.x kernel on i686

2012-05-04 Thread cvs-commit at gcc dot gnu.org
http://sourceware.org/bugzilla/show_bug.cgi?id=14052

--- Comment #15 from cvs-commit at gcc dot gnu.org cvs-commit at gcc dot 
gnu.org 2012-05-05 04:51:23 UTC ---
CVSROOT:/cvs/src
Module name:src
Changes by:amo...@sourceware.org2012-05-05 04:51:16

Modified files:
bfd: ChangeLog linker.c 
ld/testsuite   : ChangeLog 
ld/testsuite/ld-elf: warn2.d 
Removed files:
ld/testsuite/ld-elf: zerosize1.d zerosize1.s 

Log message:
PR ld/14052
PR ld/13621
bfd/
* linker.c (_bfd_nearby_section): Revert 2012-02-13 change.
ld/testsuite/
* ld-elf/warn2.d: Revert 2012-02-13 change.
* ld-elf/zerosize1.d, ld-elf/zerosize1.s: Delete.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/bfd/ChangeLog.diff?cvsroot=srcr1=1.5669r2=1.5670
http://sourceware.org/cgi-bin/cvsweb.cgi/src/bfd/linker.c.diff?cvsroot=srcr1=1.94r2=1.95
http://sourceware.org/cgi-bin/cvsweb.cgi/src/ld/testsuite/ChangeLog.diff?cvsroot=srcr1=1.1518r2=1.1519
http://sourceware.org/cgi-bin/cvsweb.cgi/src/ld/testsuite/ld-elf/warn2.d.diff?cvsroot=srcr1=1.7r2=1.8
http://sourceware.org/cgi-bin/cvsweb.cgi/src/ld/testsuite/ld-elf/zerosize1.d.diff?cvsroot=srcr1=1.2r2=NONE
http://sourceware.org/cgi-bin/cvsweb.cgi/src/ld/testsuite/ld-elf/zerosize1.s.diff?cvsroot=srcr1=1.1r2=NONE

-- 
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/13621] dangling global hidden symbol in symtab

2012-05-04 Thread cvs-commit at gcc dot gnu.org
http://sourceware.org/bugzilla/show_bug.cgi?id=13621

--- Comment #11 from cvs-commit at gcc dot gnu.org cvs-commit at gcc dot 
gnu.org 2012-05-05 04:51:22 UTC ---
CVSROOT:/cvs/src
Module name:src
Changes by:amo...@sourceware.org2012-05-05 04:51:16

Modified files:
bfd: ChangeLog linker.c 
ld/testsuite   : ChangeLog 
ld/testsuite/ld-elf: warn2.d 
Removed files:
ld/testsuite/ld-elf: zerosize1.d zerosize1.s 

Log message:
PR ld/14052
PR ld/13621
bfd/
* linker.c (_bfd_nearby_section): Revert 2012-02-13 change.
ld/testsuite/
* ld-elf/warn2.d: Revert 2012-02-13 change.
* ld-elf/zerosize1.d, ld-elf/zerosize1.s: Delete.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/bfd/ChangeLog.diff?cvsroot=srcr1=1.5669r2=1.5670
http://sourceware.org/cgi-bin/cvsweb.cgi/src/bfd/linker.c.diff?cvsroot=srcr1=1.94r2=1.95
http://sourceware.org/cgi-bin/cvsweb.cgi/src/ld/testsuite/ChangeLog.diff?cvsroot=srcr1=1.1518r2=1.1519
http://sourceware.org/cgi-bin/cvsweb.cgi/src/ld/testsuite/ld-elf/warn2.d.diff?cvsroot=srcr1=1.7r2=1.8
http://sourceware.org/cgi-bin/cvsweb.cgi/src/ld/testsuite/ld-elf/zerosize1.d.diff?cvsroot=srcr1=1.2r2=NONE
http://sourceware.org/cgi-bin/cvsweb.cgi/src/ld/testsuite/ld-elf/zerosize1.s.diff?cvsroot=srcr1=1.1r2=NONE

-- 
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/13621] dangling global hidden symbol in symtab

2012-05-04 Thread amodra at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=13621

Alan Modra amodra at gmail dot com changed:

   What|Removed |Added

 Status|RESOLVED|REOPENED
 CC||amodra at gmail dot com
 Resolution|FIXED   |

--- Comment #12 from Alan Modra amodra at gmail dot com 2012-05-05 04:54:14 
UTC ---
Reopening since I've just reverted the fix that was applied for this bug. 
Making symbols absolute just isn't a good idea.  See
http://sourceware.org/bugzilla/show_bug.cgi?id=14052

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