[Bug ld/2300] New: ld does not report duplicate symbols defined in script file

2006-02-08 Thread raj dot khem at gmail dot com
In the following example symbol _start should have been reported as duplicate as
there are two instances of it. But ld does not report this error and the _start
symbol defined in duplicate.o file is overridden.

example

Sampel application "duplicate.c":
  extern int dummy(void)
  {
  volatile int i;

  /* create some .text data to move _start away from the beginning */

  for(i = 0; i < 100; i++)
  ;

  return i;
  }

  extern void _start(void)
  {
  volatile int *p = (volatile int*)0xbf0c;

  *p = dummy();
  }

Linker script "duplicate-ld":
  SECTIONS
  {
  .text 0x:
  {
  _start = . ;
  *(.text)
  }
  } 



How to reproduce 

gcc -c -o duplicate.o duplicate.c
ld -o duplicate -T duplicate-ld duplicate.o

-- 
   Summary: ld does not report duplicate symbols defined in script
file
   Product: binutils
   Version: 2.17 (HEAD)
Status: NEW
  Severity: normal
  Priority: P2
 Component: ld
AssignedTo: unassigned at sources dot redhat dot com
ReportedBy: raj dot khem at gmail dot com
CC: bug-binutils at gnu dot org,hjl at lucon dot org
 GCC build triplet: i386-redhat-linux
  GCC host triplet: i386-redhat-linux
GCC target triplet: i386-redhat-linux


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

--- 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/2300] ld does not report duplicate symbols defined in script file

2006-02-08 Thread hjl at lucon dot org

--- Additional Comments From hjl at lucon dot org  2006-02-09 00:13 ---
A patch is posted at

http://sourceware.org/ml/binutils/2006-02/msg00126.html

-- 


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

--- 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/2290] ld searches for implicit shared library dependencies in the wrong order (in particular, differently from linux's ld.so)

2006-02-08 Thread hjl at lucon dot org

--- Additional Comments From hjl at lucon dot org  2006-02-09 00:14 ---
A patch is posted at

http://sourceware.org/ml/binutils/2006-02/msg00127.html

-- 


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

--- 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/2258] p_paddr in ELF progam header isn't handled properly

2006-02-08 Thread hjl at lucon dot org

--- Additional Comments From hjl at lucon dot org  2006-02-09 01:03 ---
A patch is posted at

http://sourceware.org/ml/binutils/2006-02/msg00117.html

-- 


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

--- 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/2290] ld searches for implicit shared library dependencies in the wrong order (in particular, differently from linux's ld.so)

2006-02-08 Thread hjl at lucon dot org

--- Additional Comments From hjl at lucon dot org  2006-02-09 01:05 ---
Fixed.

-- 
   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED


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

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