Mail Archives: djgpp/1996/12/29/07:42:15
Kuang-Chun Cheng wrote:
>
> As djgpp FAQ said, the default linker script is c:/djgpp/lib/djgpp.lnk (
> assume djgpp installed at c:/djgpp/). However, the following command gave me
> different result:
>
> ld -Tc:/djgpp/lib/djgpp.lnk -o test1 test.o
> ld -o test2 test.o
>
> test1 is smaller than test2. Could someone explain this? Thanks.
The FAQ has not been updated for the latest version of DJGPP. In v2.01,
the linker script was changed from 'djgpp.lnk' to 'djgpp.djl' because of
naming conflicts with Windows 95 symbolic links. By manually invoking
ld with the old linker script, you cause it to use the old definitions
instead of the new ones.
BTW, you should _never_ call ld manually unless you copy down the exact
syntax as used by gcc. There are a number of options that must be
specified just so, or your programs will not compile right.
--
---------------------------------------------------------------------
| John M. Aldrich, aka Fighteer I | fighteer AT cs DOT com |
| * Proud user of DJGPP! * | http://www.cs.com/fighteer |
| ObJoke: If Bill Gates were a robber, not only would he |
| shoot you, but he'd send you a bill for the bullets. |
---------------------------------------------------------------------
- Raw text -