mk: Don't link against compiler's version of libgcc
authorMatt Fleming <matt.fleming@intel.com>
Mon, 12 Mar 2012 19:40:33 +0000 (19:40 +0000)
committerMatt Fleming <matt.fleming@intel.com>
Fri, 23 Mar 2012 16:56:16 +0000 (16:56 +0000)
commit0105cae269ed2488a2a99f1548740ca99326cc4a
tree22a158442b43ff3a458f46e76b6d80b2c093837a
parent9f6b6b08feb709ba8af0571ffec0b008b5d255d9
mk: Don't link against compiler's version of libgcc

Syslinux provides its own copy of libgcc functions in
com32/lib/libgcc, so we don't need to link against the version
provided by the compiler. What's worse, the behaviour is different
between the two versions.

This caused problems, for example, when parsing the TOTALTIMEOUT
config directive in com32/menu because of the following calculation,

totaltimeout = (atoll(skipspace(p + 13)) * CLK_TCK + 9) / 10;

which invokes __divdi3() as provided by libgcc. The results returned
by the Syslinux and compiler's copy of libgcc differ, leading to
differences in behaviour.

Signed-off-by: Matt Fleming <matt.fleming@intel.com>
mk/elf.mk