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 t

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() { retur

[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

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

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