[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] a.out linking



Miro Kropacek <miro.kropacek@gmail.com> writes:

> What I don't understand is why when I link "m68k-atari-mint-gcc -o out
> a.o b.o c.o" I get bigger result than "m68k-atari-mint-gcc -o out a.o
> c.o". I understand a.out is unable to separate files into more than
> one text section but why on earth, when whole file (in our case with
> only one function) is unused, linker just didn't skip it?

Object files passed to the linker are always linked in.  Use an archive
if you want link-if-referenced semantics.

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."