This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Linker -T Option


Hi Experts,

I am confused on seeing a build snippet working fine:
powerpc-linux-gnu-gcc -T my.lds test.o -o test

As per my understanding, I need to give a -Wl,T option for this to work i.e.
powerpc-linux-gnu-gcc -Wl,-T my.lds test.o -o test

(1) How is this working with -Wl?
(2) This lds creates a section after ro data. I was under the
impression that any lds specified with -T is independent and complete.
But if this lds is declaring just one section, then how does the code
link?

Thanks,
Ajay.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]