[Bug ld/6431] ld says: invalid version 3 (max 0)

2009-10-07 Thread andyjstormont at googlemail dot com

--- Additional Comments From andyjstormont at googlemail dot com  
2009-10-07 07:37 ---
(In reply to comment #13)
> found a workaround!!! ... it seems that on sol10, all pthread_XXX stuff is now
> in libc.so. if you remove the -lpthread -thread options when glib compiles,
> everything looks good.
> 
> for me (not a binutils/linker expert) it looks as /lib/libpthread.so.1 on
> solaris10 only contains references, but /lib/libc.so.1 contains the real code:
> ===
> $ nm /lib/libc.so.1 | grep pthread_mutex_unlock
> 000bdf98 W _pthread_mutex_unlock
> 000bdf98 W pthread_mutex_unlock
> ===
> maybe ld should just skip those
> ===
> $ nm  /lib/libpthread.so.1 | grep pthread_mutex_unlock
> SunOS 5.10 sun4u sparc
>  A _pthread_mutex_unlock
>  A pthread_mutex_unlock
> ===
> "empty" functions in /lib/libpthread.so.1 and check/use the other libraries 
> ...
> 
> anyone out there who hack this is?

That doesn't really help if you are using glibc, in that case moving -lpthread
to the front does the trick.

The real problem is still there though.

-- 


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

--- You are receiving this mail because: ---
You are on the CC list for the bug, or are watching someone who is.


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


[Bug binutils/10704] as segfault in memory lookup intel syntax

2009-10-07 Thread serpilliere at droids-corp dot org

--- Additional Comments From serpilliere at droids-corp dot org  2009-10-07 
08:34 ---
I applyied both patch;
If I test the ccMaqFcN.s file, it doesn't assert but it segfault again:

$ cat ccMaqFcN.s_cp
.intel_syntax
.LC0:
.string "dummy"
lea %eax, DWORD PTR[ @gotoff + %ebx ]
$ as ccMaqFcN.s_cp
Erreur de segmentation



With patch applied from:
http://sourceware.org/ml/binutils/2009-09/msg00742.html
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gas/ChangeLog.diff?cvsroot=src&r1=1.3978&r2=1.3979
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gas/symbols.c.diff?cvsroot=src&r1=1.99&r2=1.100



-- 


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

--- You are receiving this mail because: ---
You are on the CC list for the bug, or are watching someone who is.


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


[Bug binutils/10704] as segfault in memory lookup intel syntax

2009-10-07 Thread cvs-commit at gcc dot gnu dot org

--- Additional Comments From cvs-commit at gcc dot gnu dot org  2009-10-07 
08:37 ---
Subject: Bug 10704

CVSROOT:/cvs/src
Module name:src
Branch: binutils-2_20-branch
Changes by: amo...@sourceware.org   2009-10-07 08:36:44

Modified files:
gas: ChangeLog symbols.c 

Log message:
PR gas/10704
* symbols.c (snapshot_symbol): Revert 2006-01-09 patch for PR2117.

Patches:
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gas/ChangeLog.diff?cvsroot=src&only_with_tag=binutils-2_20-branch&r1=1.3938.2.24&r2=1.3938.2.25
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gas/symbols.c.diff?cvsroot=src&only_with_tag=binutils-2_20-branch&r1=1.96.2.3&r2=1.96.2.4



-- 


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

--- You are receiving this mail because: ---
You are on the CC list for the bug, or are watching someone who is.


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


[Bug binutils/10704] as segfault in memory lookup intel syntax

2009-10-07 Thread amodra at bigpond dot net dot au

--- Additional Comments From amodra at bigpond dot net dot au  2009-10-07 
11:43 ---
Doesn't segfault for me with current mainline or branch.

-- 


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

--- You are receiving this mail because: ---
You are on the CC list for the bug, or are watching someone who is.


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


[Bug binutils/10704] as segfault in memory lookup intel syntax

2009-10-07 Thread serpilliere at droids-corp dot org

--- Additional Comments From serpilliere at droids-corp dot org  2009-10-07 
12:18 ---
Sorry, my fault.
It's ok here too. Thanks!


-- 


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

--- You are receiving this mail because: ---
You are on the CC list for the bug, or are watching someone who is.


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


[Bug ld/10744] New: Linker failed to build ia64 kernel

2009-10-07 Thread hjl dot tools at gmail dot com
I got

/usr/local/bin/ld:arch/ia64/kernel/gate.lds:898: PHDRS and FILEHDR are only
permitted for the first PT_LOAD segment

-- 
   Summary: Linker failed to build ia64 kernel
   Product: binutils
   Version: 2.21 (HEAD)
Status: NEW
  Severity: normal
  Priority: P2
 Component: ld
AssignedTo: unassigned at sources dot redhat dot com
ReportedBy: hjl dot tools at gmail dot com
CC: bug-binutils at gnu dot org


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

--- You are receiving this mail because: ---
You are on the CC list for the bug, or are watching someone who is.


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


[Bug ld/10744] Linker failed to build ia64 kernel

2009-10-07 Thread hjl dot tools at gmail dot com

--- Additional Comments From hjl dot tools at gmail dot com  2009-10-07 
18:18 ---
Created an attachment (id=4260)
 --> (http://sourceware.org/bugzilla/attachment.cgi?id=4260&action=view)
A testcase for Linux/ia64

Working linker:

[...@gnu-14 kernel]$ ld -o gate-syms.o -T gate.lds  gate.o
[...@gnu-14 kernel]$ ld -shared -s -soname=linux-gate.so.1 -o gate.so  -T
gate.lds gate.o
[...@gnu-14 kernel]$ readelf -l gate.so

Elf file type is DYN (Shared object file)
Entry point 0xa0010640
There are 4 program headers, starting at offset 64

Program Headers:
  Type   Offset VirtAddr   PhysAddr
 FileSizMemSiz  Flags  Align
  LOAD   0x 0xa000 0xa000
 0x0610 0x0610  R  1
  LOAD   0x 0xa001 0xa001
 0x09b0 0x09b0E1
  DYNAMIC0x0268 0xa268 0xa268
 0x0140 0x0140  R  8
  IA_64_UNWIND   0x05c8 0xa5c8 0xa5c8
 0x0048 0x0048  R  8

 Section to Segment mapping:
  Segment Sections...
   00 .hash .dynsym .dynstr .gnu.version .gnu.version_d .dynamic
.data.patch .IA_64.unwind_info .IA_64.unwind 
   01 .text 
   02 .dynamic 
   03 .IA_64.unwind 
[...@gnu-14 kernel]$ 

Bad linker:

[...@gnu-14 kernel]$ ./ld -o gate-syms.o -T gate.lds  gate.o./ld:gate.lds:898:
PHDRS and FILEHDR are only permitted for the first PT_LOAD segment
[...@gnu-14 kernel]$ ./ld -shared -s -soname=linux-gate.so.1 -o gate.so  -T
gate.lds gate.o 
./ld:gate.lds:898: PHDRS and FILEHDR are only permitted for the first PT_LOAD
segment
[...@gnu-14 kernel]$ 

-- 


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

--- You are receiving this mail because: ---
You are on the CC list for the bug, or are watching someone who is.


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


[Bug ld/10744] Linker failed to build ia64 kernel

2009-10-07 Thread hjl dot tools at gmail dot com

--- Additional Comments From hjl dot tools at gmail dot com  2009-10-07 
18:22 ---
It is caused by

http://sourceware.org/ml/binutils-cvs/2009-10/msg00056.html

-- 


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

--- You are receiving this mail because: ---
You are on the CC list for the bug, or are watching someone who is.


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


[Bug gas/10740] amd64+i386 as: i8086 Intel syntax far jumps broken (both variants of them)

2009-10-07 Thread hjl dot tools at gmail dot com

--- Additional Comments From hjl dot tools at gmail dot com  2009-10-07 
19:42 ---
I have a hard time to understand what the problem is.
Please provide

1. Assembly source.
2. Command line options.
3. Expected output.

-- 
   What|Removed |Added

 Status|NEW |WAITING


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

--- You are receiving this mail because: ---
You are on the CC list for the bug, or are watching someone who is.


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


[Bug binutils/10704] as segfault in memory lookup intel syntax

2009-10-07 Thread cvs-commit at gcc dot gnu dot org

--- Additional Comments From cvs-commit at gcc dot gnu dot org  2009-10-07 
20:02 ---
Subject: Bug 10704

CVSROOT:/cvs/src
Module name:src
Changes by: h...@sourceware.org 2009-10-07 20:02:06

Modified files:
gas/testsuite  : ChangeLog 
gas/testsuite/gas/i386: intelok.d intelok.s 

Log message:
2009-10-07  H.J. Lu  

PR gas/10704
* gas/i386/intelok.s: Add 2 new tests.
* gas/i386/intelok.d: Updated.

Patches:
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gas/testsuite/ChangeLog.diff?cvsroot=src&r1=1.1564&r2=1.1565
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gas/testsuite/gas/i386/intelok.d.diff?cvsroot=src&r1=1.16&r2=1.17
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gas/testsuite/gas/i386/intelok.s.diff?cvsroot=src&r1=1.10&r2=1.11



-- 


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

--- You are receiving this mail because: ---
You are on the CC list for the bug, or are watching someone who is.


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


[Bug gas/10740] amd64+i386 as: i8086 Intel syntax far jumps broken (both variants of them)

2009-10-07 Thread hjl dot tools at gmail dot com


-- 
   What|Removed |Added

 CC||hjl dot tools at gmail dot
   ||com


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

--- You are receiving this mail because: ---
You are on the CC list for the bug, or are watching someone who is.


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


[Bug binutils/10704] as segfault in memory lookup intel syntax

2009-10-07 Thread hjl dot tools at gmail dot com

--- Additional Comments From hjl dot tools at gmail dot com  2009-10-07 
20:03 ---
Fixed.

-- 
   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED


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

--- You are receiving this mail because: ---
You are on the CC list for the bug, or are watching someone who is.


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


[Bug gas/3041] Bogus jump to weak symbol on m68k-unknown-netbsd

2009-10-07 Thread vincent dot riviere at freesbee dot fr

--- Additional Comments From vincent dot riviere at freesbee dot fr  
2009-10-07 20:11 ---
Here are proposals for the ChangeLog.

gas:
2009-10-07  Vincent Riviere

PR gas/3041
* config/tc-m68k.c (tc_gen_reloc): Fix addend for relocations
located in data section an referencing a weak symbol.

gas/testsuite:

2009-10-07  Vincent Riviere

PR gas/3041
* gas/m68k/all.exp: Added "p3041data".
* gas/m68k/p3041.d, gas/m68k/p3041.s: Added tests of weak references
from text section to all possible sections.
* gas/m68k/p3041data.d, gas/m68k/p3041data.s: New test. Check weak
references from data section.


-- 


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

--- You are receiving this mail because: ---
You are on the CC list for the bug, or are watching someone who is.


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


[Bug ld/10744] Linker failed to build ia64 kernel

2009-10-07 Thread hjl dot tools at gmail dot com

--- Additional Comments From hjl dot tools at gmail dot com  2009-10-07 
22:45 ---
The reasons ia64 kernel does are

1. EPC segment has to be marked PF_X without PF_R.
2. We can only have one PT_LOAD segment in vDSO.

ia64 kernel uses

PHDRS
{
  readable PT_LOAD FILEHDR PHDRS FLAGS(4); /* PF_R */
  epc PT_LOAD FILEHDR PHDRS FLAGS FLAGS(1); /* PF_X */
  dynamic PT_DYNAMIC FLAGS(4); /* PF_R */
  unwind 0x7001; /* PT_IA_64_UNWIND, but ld doesn't match the name */
}

so that ld.so can treat readable and epc segments as a single
segment with data and text. ld.so can map a single segment with
data and text parts.




-- 
   What|Removed |Added

   Severity|normal  |critical


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

--- You are receiving this mail because: ---
You are on the CC list for the bug, or are watching someone who is.


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


[Bug ld/10744] Linker failed to build ia64 kernel

2009-10-07 Thread hjl dot tools at gmail dot com

--- Additional Comments From hjl dot tools at gmail dot com  2009-10-08 
00:51 ---
A patch is posted at

http://sourceware.org/ml/binutils/2009-10/msg00182.html

-- 


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

--- You are receiving this mail because: ---
You are on the CC list for the bug, or are watching someone who is.


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


[Bug ld/10744] Linker failed to build ia64 kernel

2009-10-07 Thread cvs-commit at gcc dot gnu dot org

--- Additional Comments From cvs-commit at gcc dot gnu dot org  2009-10-08 
01:00 ---
Subject: Bug 10744

CVSROOT:/cvs/src
Module name:src
Changes by: amo...@sourceware.org   2009-10-08 01:00:27

Modified files:
ld : ChangeLog ldlang.c ld.texinfo 

Log message:
PR ld/10744
* ldlang.c (lang_new_phdr): Allow FILEHDR/PHDRS on more than the
first PT_LOAD header.
* ld.texinfo: Update.

Patches:
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/ld/ChangeLog.diff?cvsroot=src&r1=1.2059&r2=1.2060
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/ld/ldlang.c.diff?cvsroot=src&r1=1.321&r2=1.322
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/ld/ld.texinfo.diff?cvsroot=src&r1=1.249&r2=1.250



-- 


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

--- You are receiving this mail because: ---
You are on the CC list for the bug, or are watching someone who is.


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


[Bug ld/10744] Linker failed to build ia64 kernel

2009-10-07 Thread cvs-commit at gcc dot gnu dot org

--- Additional Comments From cvs-commit at gcc dot gnu dot org  2009-10-08 
01:12 ---
Subject: Bug 10744

CVSROOT:/cvs/src
Module name:src
Changes by: amo...@sourceware.org   2009-10-08 01:11:57

Modified files:
ld/testsuite   : ChangeLog 
ld/testsuite/ld-scripts: phdrs3.d 

Log message:
PR ld/10744
* ld-scripts/phdrs3.d: Update.

Patches:
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/ld/testsuite/ChangeLog.diff?cvsroot=src&r1=1.1178&r2=1.1179
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/ld/testsuite/ld-scripts/phdrs3.d.diff?cvsroot=src&r1=1.1&r2=1.2



-- 


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

--- You are receiving this mail because: ---
You are on the CC list for the bug, or are watching someone who is.


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


[Bug ld/10744] Linker failed to build ia64 kernel

2009-10-07 Thread amodra at bigpond dot net dot au

--- Additional Comments From amodra at bigpond dot net dot au  2009-10-08 
01:22 ---
patch applied

-- 
   What|Removed |Added

   Severity|critical|normal
 Status|NEW |RESOLVED
 Resolution||FIXED


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

--- You are receiving this mail because: ---
You are on the CC list for the bug, or are watching someone who is.


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


[Bug ld/10744] Linker failed to build ia64 kernel

2009-10-07 Thread cvs-commit at gcc dot gnu dot org

--- Additional Comments From cvs-commit at gcc dot gnu dot org  2009-10-08 
02:38 ---
Subject: Bug 10744

CVSROOT:/cvs/src
Module name:src
Changes by: h...@sourceware.org 2009-10-08 02:38:26

Modified files:
ld/testsuite   : ChangeLog 
ld/testsuite/ld-scripts: phdrs3.exp 
Added files:
ld/testsuite/ld-scripts: phdrs3a.d phdrs3a.t 

Log message:
2009-10-07  H.J. Lu  

PR ld/10744
* ld-scripts/phdrs3.exp: Run phdrs3a.

* ld-scripts/phdrs3a.d: New.
* ld-scripts/phdrs3a.t: Likewise.

Patches:
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/ld/testsuite/ChangeLog.diff?cvsroot=src&r1=1.1179&r2=1.1180
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/ld/testsuite/ld-scripts/phdrs3a.d.diff?cvsroot=src&r1=NONE&r2=1.1
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/ld/testsuite/ld-scripts/phdrs3a.t.diff?cvsroot=src&r1=NONE&r2=1.1
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/ld/testsuite/ld-scripts/phdrs3.exp.diff?cvsroot=src&r1=1.1&r2=1.2



-- 


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

--- You are receiving this mail because: ---
You are on the CC list for the bug, or are watching someone who is.


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