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?

Question: Object files and Address extern variable

2008-08-21 Thread Sebastien DONADIO
Hello, 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? But if