Fix problem with PLT and GOT relocs on armel.
commitab7ed48ee8c244276c73e6893cf8ce2c52d9b6db
authorDaniel Glöckner <daniel-gl@gmx.net>
Tue, 22 Jun 2010 22:20:32 +0000 (23 00:20 +0200)
committerThomas Preud'homme <thomas.preudhomme@celest.fr>
Fri, 12 Aug 2011 16:28:45 +0000 (12 18:28 +0200)
treeff3993d95e1ab548ca166f554ea0fc39704e6222
parentbf374a5f238360d6a5055d79f53065fa95a26047
Fix problem with PLT and GOT relocs on armel.

TinyCC fails to link correctly to libraries when both R_ARM_PLT32 and
R_ARM_GOT32 relocation to a same symbol exist (see
http://lists.nongnu.org/archive/html/tinycc-devel/2010-05/msg00032.html
for more details).
The patch marks all undefined weak symbols found in external libraries
as strong. The value of all remaining weak symbols is set to zero just
before the section is output.

Note by Thomas Preud'homme: it's been 2 months in Debian without any new
bug report, hence commiting.
tccelf.c