Re: question about "invalid string offset" & "could not read symbols: Malformed archive" linker errors (fwd)

2008-08-22 Thread Roger Moore
Hi Nick, On Fri, 22 Aug 2008, Nick Clifton wrote: > Hi Roger, > > > We built the libxvtmapi.a ourselves. Yes, I've tried deleting it and > > rebuilding but I still get the file format not recognized error message. > > > > The build procedure seems to work fine otherwise, though there are

[Bug ld/6853] --as-needed doesn't work on more than 1 DSO

2008-08-22 Thread hjl dot tools at gmail dot com
--- Additional Comments From hjl dot tools at gmail dot com 2008-08-22 22:06 --- I guess it is OK since libfoo.so should be linked with libbar.so. -- What|Removed |Added

[Bug ld/6853] New: --as-needed doesn't work on more than 1 DSO

2008-08-22 Thread hjl dot tools at gmail dot com
[EMAIL PROTECTED] needed-5]$ cat foo.c extern void bar (); void foo () { bar (); } [EMAIL PROTECTED] needed-5]$ cat bar.c void bar () { } [EMAIL PROTECTED] needed-5]$ cat main.c extern void foo (); int main () { foo (); return 0; } [EMAIL PROTECTED] needed-5]$ make foo gcc -O -g -c -o ma

Re: question about "invalid string offset" & "could not read symbols: Malformed archive" linker errors (fwd)

2008-08-22 Thread Nick Clifton
Hi Roger, We built the libxvtmapi.a ourselves. Yes, I've tried deleting it and rebuilding but I still get the file format not recognized error message. The build procedure seems to work fine otherwise, though there are some warning messages. That said, I haven't seen any warning messages

Re: Build fails make check.

2008-08-22 Thread Nick Clifton
Hi Keith, I am building I configured binutils-2.17 Note: The 2.18 sources were released a while ago now... make check failed. The relevant lines are FAIL: TLS -fpic -shared FAIL: TLS -fpic and -fno-pic exec FAIL: TLS -fpic and -fno-pic exec -relax FAIL: ld-elf/64ksec FAIL: vers24a FAIL: vers

Re: Question: Object files and Address extern variable

2008-08-22 Thread Nick Clifton
Hi Sebastien, I created a pragma to change the locality of data a in my code. When I put "#pragma foo a" in file1.c and file2.c, I got the good result: 2.00 0x80900850 But if it is only in file1.c, the result is 0.00 0x0. I'm using Binutils 2.18. Which part of the code I need to modify?

[Bug ld/3290] Linker creates dynamic debug symbols in DSO

2008-08-22 Thread jan dot kratochvil at redhat dot com
--- Additional Comments From jan dot kratochvil at redhat dot com 2008-08-22 08:35 --- Jakub's fix for the Comment 8 and Comment 9 has been committed with a testcase: http://sourceware.org/ml/binutils/2008-08/msg00188.html http://sourceware.org/ml/binutils-cvs/2008-08/msg00127.html