Add support for a new magic symbol _gp_disp on mips to handle PIC

binaries.
This commit is contained in:
Vladimir Serbinenko 2013-11-22 04:56:10 +01:00
parent 6f4a19f59f
commit c36c73f681
3 changed files with 26 additions and 10 deletions

View file

@ -23,7 +23,7 @@ BEGIN {
} else if ($1 == "undefined") {
if ($3 in symtab)
modtab[$2] = modtab[$2] " " symtab[$3];
else if ($3 != "__gnu_local_gp") {
else if (and ($3 != "__gnu_local_gp", $3 != "_gp_disp")) {
printf "%s in %s is not defined\n", $3, $2 >"/dev/stderr";
error++;
}