]> git.proxmox.com Git - qemu.git/commit - x86_64.ld
Fix missing symbols in .rel/.rela.plt sections
authorLoïc Minier <lool@dooz.org>
Sun, 31 Jan 2010 11:22:52 +0000 (12:22 +0100)
committerAurelien Jarno <aurelien@aurel32.net>
Sat, 6 Feb 2010 21:22:27 +0000 (22:22 +0100)
commit845f2c2812d9ed24b36c02a3d06ee83aeafe8b49
treeaeb8099a61d91c9e1ed8c49959360831072b760d
parent02ecd9fc73dc781a5ac0d8333c8071e6a28fe0e1
Fix missing symbols in .rel/.rela.plt sections

Fix .rel.plt sections in the output to not only include .rel.plt
sections from the input but also the .rel.iplt sections and to define
the hidden symbols __rel_iplt_start and __rel_iplt_end around
.rel.iplt as otherwise we get undefined references to these when
linking statically to a multilib libc.a.  This fixes the static build
under i386.

Apply similar logic to rela.plt/.iplt and __rela_iplt/_plt_start/_end to
fix the static build under amd64.

Signed-off-by: Loïc Minier <lool@dooz.org>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
i386.ld
x86_64.ld