HomePhabricator

[lld][X86] Restore gotEntrySize.

Authored by hvdijk on May 16 2021, 4:13 PM.

Description

[lld][X86] Restore gotEntrySize.

D62727 removed GotEntrySize and GotPltEntrySize with a comment that they
are always equal to wordsize(), but that is not entirely true: X32 has a
word size of 4, but needs 8-byte GOT entries. This restores gotEntrySize
for both, adjusted for current naming conventions, but defaults it to
config->wordsize to keep things simple for architectures other than
x86_64.

This partially reverts D62727.

Reviewed By: MaskRay

Differential Revision: https://reviews.llvm.org/D102509

Details

Committed
hvdijkMay 16 2021, 4:13 PM
Reviewer
MaskRay
Differential Revision
D102509: [lld][X86] Restore gotEntrySize.
Parents
rG7f5d8e655965: Fix some deprecated copy ops in google mock
Branches
Unknown
Tags
Unknown
Reverts
D62727: [ELF] Delete GotEntrySize and GotPltEntrySize