[Bug ld/20691] New: weak symbol not merged

2016-10-16 Thread m.othacehe at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=20691

Bug ID: 20691
   Summary: weak symbol not merged
   Product: binutils
   Version: 2.27
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: ld
  Assignee: unassigned at sourceware dot org
  Reporter: m.othacehe at gmail dot com
  Target Milestone: ---

Created attachment 9561
  --> https://sourceware.org/bugzilla/attachment.cgi?id=9561&action=edit
weak bug

Within the following test case, the weak symbol "__test" cannot be found in
resulting binary.

With ld version 2.26; the weak symbol is present in resulting binary.

-- 
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/20692] New: gas failed on SPARC

2016-10-16 Thread ikozhukhov at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=20692

Bug ID: 20692
   Summary: gas failed on SPARC
   Product: binutils
   Version: 2.27
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: gas
  Assignee: unassigned at sourceware dot org
  Reporter: ikozhukhov at gmail dot com
  Target Milestone: ---

I have DilOS (illumos based platform)
i have gcc-5.4 + GNU AS + illumos LD bootstrap - works well.
i try update illumos assembler files from Sun AS -> Gnu AS(GAS) and i have
problems.

/ws/builds/igork/dg-54/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/aw
-\#  -K pic -P -D__STDC__ -D_ASM -D_REENTRANT -Dsparc  -DTHREAD_DEBUG  -I./inc
-I/ws/builds/igork/dg-54/usr/src/lib/libc/inc -DTEXT_DOMAIN=\"SUNW_OST_OSLIB\"
-D_TS_ERRNO  -I/ws/builds/igork/dg-54/proto/root_sparc/usr/include 
-D_RETAIN_OLD_SYSCALLS -DPIC -D_REENTRANT -xarch=v8plus ./crt/_rtbootld.s -o
pics/_rtbootld.o
/usr/lib/cpp -D__GNUC_AS__ -D__STDC__ -D_ASM -D_REENTRANT -Dsparc
-DTHREAD_DEBUG -I./inc -I/ws/builds/igork/dg-54/usr/src/lib/libc/inc
-DTEXT_DOMAIN="SUNW_OST_OSLIB" -D_TS_ERRNO
-I/ws/builds/igork/dg-54/proto/root_sparc/usr/include -D_RETAIN_OLD_SYSCALLS
-DPIC -D_REENTRANT ./crt/_rtbootld.s -Dsparc -D__sparc -D__sparcv8 | {#line
filter} | /usr/bin/gas --warn --fatal-warnings --traditional-format
-xarch=v8plus -32 -o pics/_rtbootld.o 
./crt/_rtbootld.s: Assembler messages:
./crt/_rtbootld.s:75: Error: unknown pseudo-op: `.volatile'
./crt/_rtbootld.s:245: Error: unknown pseudo-op: `.nonvolatile'
*** Error code 1
dmake: Fatal error: Command failed for target `pics/_rtbootld.o'
Current working directory /ws/builds/igork/dg-54/usr/src/lib/libc/sparc

what is replacement for .volatile on GAS?

-- 
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/20693] New: kernel build error on ppc64le

2016-10-16 Thread markus at trippelsdorf dot de
https://sourceware.org/bugzilla/show_bug.cgi?id=20693

Bug ID: 20693
   Summary: kernel build error on ppc64le
   Product: binutils
   Version: 2.28 (HEAD)
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: gold
  Assignee: ccoutant at gmail dot com
  Reporter: markus at trippelsdorf dot de
CC: ian at airs dot com
  Target Milestone: ---

On ppc64le I get during Linux kernel build:

objdump -h lib/lib.a | sed -ne '/___ksymtab/{s/.*+/EXTERN(/;s/ .*/)/;p}'
>lib/.lib-ksyms.o.lds; rm -f lib/.lib_exports.o; ar rcsD lib/.lib_exports.o; ld
-EL-r -o lib/lib-ksyms.o -T lib/.lib-ksyms.o.lds lib/.lib_exports.o; rm
lib/.lib_exports.o lib/.lib-ksyms.o.lds
ld: internal error in target, at parameters.h:105


trippels@gcc2-power8 linux % rm foo.o
trippels@gcc2-power8 linux % ar rcsD foo.o
trippels@gcc2-power8 linux % cat foo.o
!
trippels@gcc2-power8 linux % cat test.lds
EXTERN(bar)
trippels@gcc2-power8 linux % ld.bfd -T test.lds foo.o
trippels@gcc2-power8 linux % ld.gold -T test.lds foo.o
ld.gold: internal error in target, at parameters.h:105

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