[lld] r250087 - [ELF2/PPC64] Add a comment about the page size
Rafael EspĂndola via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 13 06:24:58 PDT 2015
Thanks!
On 12 October 2015 at 15:34, Hal Finkel via llvm-commits
<llvm-commits at lists.llvm.org> wrote:
> Author: hfinkel
> Date: Mon Oct 12 14:34:29 2015
> New Revision: 250087
>
> URL: http://llvm.org/viewvc/llvm-project?rev=250087&view=rev
> Log:
> [ELF2/PPC64] Add a comment about the page size
>
> Rafael requested some additional commentary (post-commit review of r249760), to
> make it clear this is intended and necessary.
>
> Modified:
> lld/trunk/ELF/Target.cpp
>
> Modified: lld/trunk/ELF/Target.cpp
> URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Target.cpp?rev=250087&r1=250086&r2=250087&view=diff
> ==============================================================================
> --- lld/trunk/ELF/Target.cpp (original)
> +++ lld/trunk/ELF/Target.cpp Mon Oct 12 14:34:29 2015
> @@ -200,7 +200,11 @@ PPC64TargetInfo::PPC64TargetInfo() {
> // PCRelReloc = FIXME
> // GotReloc = FIXME
> PltEntrySize = 32;
> +
> + // We need 64K pages (at least under glibc/Linux, the loader won't
> + // set different permissions on a finer granularity than that).
> PageSize = 65536;
> +
> VAStart = 0x10000000;
> }
> void PPC64TargetInfo::writePltEntry(uint8_t *Buf, uint64_t GotEntryAddr,
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits
More information about the llvm-commits
mailing list