binutils-2.18 regression

2008-06-01 Thread forumer

Hi,

I am trying to cross compile binutils-2.18 to arm-wince-pe and I have tried
on a Cywin and linux(Ubuntu 8.04) host and I always get the same error:

./configure --prefix=/opt/cegcc --target=arm-wince-pe --disable-nls
make


make[4]: entrant dans le répertoire « /home/vincent/src/binutils-2.18/ld
»
/bin/bash ./libtool --tag=CC --mode=link gcc -W -Wall -Wstrict-prototypes
-Wmissing-prototypes -Werror -g -O2   -o ld-new  ldgram.o ldlex.o lexsup.o
ldlang.o mri.o ldctor.o ldmain.o ldwrite.o ldexp.o ldemul.o ldver.o
ldmisc.o ldfile.o ldcref.o sha1.o earm_wince_pe.o deffilep.o pe-dll.o
../bfd/libbfd.la ../libiberty/libiberty.a  
libtool: link: gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes
-Werror -g -O2 -o ld-new ldgram.o ldlex.o lexsup.o ldlang.o mri.o ldctor.o
ldmain.o ldwrite.o ldexp.o ldemul.o ldver.o ldmisc.o ldfile.o ldcref.o
sha1.o earm_wince_pe.o deffilep.o pe-dll.o  ../bfd/.libs/libbfd.a
../libiberty/libiberty.a
deffilep.o: In function `main':
/home/vincent/src/binutils-2.18/ld/deffilep.c:1: multiple definition of
`main'
ldmain.o:/home/vincent/src/binutils-2.18/ld/.././ld/ldmain.c:185: first
defined here
earm_wince_pe.o: In function `gld_arm_wince_pe_unrecognized_file':
/home/vincent/src/binutils-2.18/ld/.././ld/emultempl/pe.em:1371: undefined
reference to `def_file_parse'
pe-dll.o: In function `pe_implied_import_dll':
/home/vincent/src/binutils-2.18/ld/pe-dll.c:2744: undefined reference to
`def_get_module'
/home/vincent/src/binutils-2.18/ld/pe-dll.c:2772: undefined reference to
`def_file_add_import'
/home/vincent/src/binutils-2.18/ld/pe-dll.c:2729: undefined reference to
`def_file_empty'
pe-dll.o: In function `process_def_file':
/home/vincent/src/binutils-2.18/ld/pe-dll.c:596: undefined reference to
`def_file_add_directive'
/home/vincent/src/binutils-2.18/ld/pe-dll.c:653: undefined reference to
`def_file_add_export'
/home/vincent/src/binutils-2.18/ld/pe-dll.c:703: undefined reference to
`def_file_add_export'
/home/vincent/src/binutils-2.18/ld/pe-dll.c:583: undefined reference to
`def_file_empty'
collect2: ld returned 1 exit status
make[4]: *** [ld-new] Erreur 1
make[4]: quittant le répertoire « /home/vincent/src/binutils-2.18/ld »
make[3]: *** [all-recursive] Erreur 1
make[3]: quittant le répertoire « /home/vincent/src/binutils-2.18/ld »
make[2]: *** [all] Erreur 2
make[2]: quittant le répertoire « /home/vincent/src/binutils-2.18/ld »
make[1]: *** [all-ld] Erreur 2
make[1]: quittant le répertoire « /home/vincent/src/binutils-2.18 »
make: *** [all] Erreur 2

I tried with the previous binutils version(2.17) and it works fine ...










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


[Bug gold/6585] New: Typo breaks -z on 32-bit little endian archs

2008-06-01 Thread yosh at gimp dot org
Obvious typo breaks -z on 32-bit little endian archs.

-- 
   Summary: Typo breaks -z on 32-bit little endian archs
   Product: binutils
   Version: 2.19 (HEAD)
Status: NEW
  Severity: normal
  Priority: P2
 Component: gold
AssignedTo: ian at airs dot com
ReportedBy: yosh at gimp dot org
CC: bug-binutils at gnu dot org


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

--- 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 gold/6585] Typo breaks -z on 32-bit little endian archs

2008-06-01 Thread yosh at gimp dot org

--- Additional Comments From yosh at gimp dot org  2008-06-01 20:09 ---
Created an attachment (id=2770)
 --> (http://sourceware.org/bugzilla/attachment.cgi?id=2770&action=view)
Fix typo


-- 


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

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


Ask for helping about LD linker

2008-06-01 Thread jian
Dear,
Excuse me,I don't know how to  remove unused functions and variable when 
linking ELF.

please let me know ASAP.

eg.

int main()
{

int i;

i= 5;
return i;
}


char tmpBuffer[5];

char *getTmpBuff()
{
return tmpBuffer;
}

char *getTmpBuff1()
{
return tmpBuffer;
}

char *getTmpBuff2()
{
return tmpBuffer;
}
how to discard the functions(getTmpBuff,getTmpBuff1,getTmpBuff2) when linking.

Best regards.


2008-06-02 



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


Re: Ask for helping about LD linker

2008-06-01 Thread Nick Clifton

Hi Jian,

Excuse me,I don't know how to  remove unused functions and variable when 
linking ELF.


Compile your program with --function-sections.  Link your program with 
-Wl,--gc-sections.


Note: This feature is not implemented for all targets.  If it does not 
work for you then it may be that the target you are working with is one 
of the unsupported targets.


Cheers
  Nick


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