Re: [REGRESSION] "efi: efistub: Convert into static library" and preparation patches
From: H. Peter Anvin
Date: Wed Sep 03 2014 - 17:29:13 EST
On 09/03/2014 12:57 PM, Ard Biesheuvel wrote:
> I guess that is likely to work, I just wasn't aware it existed :-)
> I think adding another visibility(hidden) attribute or 2 would
> complete eliminate the need for GOT fixups, but I guess that is more
> sensitive to compiler versions being recent enough etc.
> The attached (build tested only) patch eliminates all GOT relocations
> under boot/compressed for a 64-bit EFI stub build.
This would be better. There is no reason to have a GOT in what is
inherently a monolithic binary.
Unfortunately -fvisibility=hidden doesn't seem to be enough.
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/