sub main'picmeup
{
- local($dst,$sym,$base,$label)=@_;
+ local($dst,$sym,$base,$reflabel)=@_;
if ($main'cpp)
{
else {
$tmp=<<___;
#if (defined(ELF) || defined(SOL)) && defined(PIC)
- leal _GLOBAL_OFFSET_TABLE_+[.-$label]($regs{$base}),$regs{$dst}
+ leal _GLOBAL_OFFSET_TABLE_+[.-$reflabel]($regs{$base}),$regs{$dst}
movl $sym\@GOT($regs{$dst}),$regs{$dst}
#else
leal $sym,$regs{$dst}
}
else {
&main'lea($dst,&main'DWP(
- "${under}_GLOBAL_OFFSET_TABLE_+[.-$label]",
+ "${under}_GLOBAL_OFFSET_TABLE_+[.-$reflabel]",
$base));
}
&main'mov($dst,&main'DWP($under.$sym."\@GOT",$dst));