1
1
mirror of https://github.com/rui314/mold.git synced 2024-11-10 10:57:55 +03:00
This commit is contained in:
Rui Ueyama 2022-10-02 17:08:35 +08:00
parent a7f1e20594
commit c4e8fab106
7 changed files with 14 additions and 14 deletions

View File

@ -434,7 +434,7 @@ void InputSection<E>::scan_relocations(Context<E> &ctx) {
}
if (sym.is_ifunc())
sym.flags |= NEEDS_GOT;
sym.flags |= (NEEDS_GOT | NEEDS_PLT);
switch (rel.r_type) {
case R_ARM_ABS32:
@ -447,7 +447,7 @@ void InputSection<E>::scan_relocations(Context<E> &ctx) {
case R_ARM_CALL:
case R_ARM_JUMP24:
case R_ARM_THM_JUMP24:
if (sym.is_imported || sym.is_ifunc())
if (sym.is_imported)
sym.flags |= NEEDS_PLT;
break;
case R_ARM_GOT_PREL:

View File

@ -430,7 +430,7 @@ void InputSection<E>::scan_relocations(Context<E> &ctx) {
}
if (sym.is_ifunc())
sym.flags |= NEEDS_GOT;
sym.flags |= (NEEDS_GOT | NEEDS_PLT);
switch (rel.r_type) {
case R_AARCH64_ABS64:
@ -443,7 +443,7 @@ void InputSection<E>::scan_relocations(Context<E> &ctx) {
break;
case R_AARCH64_CALL26:
case R_AARCH64_JUMP26:
if (sym.is_imported || sym.is_ifunc())
if (sym.is_imported)
sym.flags |= NEEDS_PLT;
break;
case R_AARCH64_TLSIE_ADR_GOTTPREL_PAGE21:

View File

@ -441,7 +441,7 @@ void InputSection<E>::scan_relocations(Context<E> &ctx) {
}
if (sym.is_ifunc())
sym.flags |= NEEDS_GOT;
sym.flags |= (NEEDS_GOT | NEEDS_PLT);
switch (rel.r_type) {
case R_386_8:
@ -462,7 +462,7 @@ void InputSection<E>::scan_relocations(Context<E> &ctx) {
sym.flags |= NEEDS_GOT;
break;
case R_386_PLT32:
if (sym.is_imported || sym.is_ifunc())
if (sym.is_imported)
sym.flags |= NEEDS_PLT;
break;
case R_386_TLS_GOTIE:

View File

@ -374,7 +374,7 @@ void InputSection<E>::scan_relocations(Context<E> &ctx) {
}
if (sym.is_ifunc())
sym.flags |= NEEDS_GOT;
sym.flags |= (NEEDS_GOT | NEEDS_PLT);
switch (rel.r_type) {
case R_PPC64_ADDR64:
@ -384,7 +384,7 @@ void InputSection<E>::scan_relocations(Context<E> &ctx) {
sym.flags |= NEEDS_GOTTP;
break;
case R_PPC64_REL24:
if (sym.is_imported || sym.is_ifunc())
if (sym.is_imported)
sym.flags |= NEEDS_PLT;
break;
case R_PPC64_PLT16_HA:

View File

@ -703,7 +703,7 @@ void InputSection<E>::scan_relocations(Context<E> &ctx) {
}
if (sym.is_ifunc())
sym.flags |= NEEDS_GOT;
sym.flags |= (NEEDS_GOT | NEEDS_PLT);
switch (rel.r_type) {
case R_RISCV_32:
@ -722,7 +722,7 @@ void InputSection<E>::scan_relocations(Context<E> &ctx) {
break;
case R_RISCV_CALL:
case R_RISCV_CALL_PLT:
if (sym.is_imported || sym.is_ifunc())
if (sym.is_imported)
sym.flags |= NEEDS_PLT;
break;
case R_RISCV_GOT_HI20:

View File

@ -483,7 +483,7 @@ void InputSection<E>::scan_relocations(Context<E> &ctx) {
}
if (sym.is_ifunc())
sym.flags |= NEEDS_GOT;
sym.flags |= (NEEDS_GOT | NEEDS_PLT);
switch (rel.r_type) {
case R_SPARC_64:
@ -526,7 +526,7 @@ void InputSection<E>::scan_relocations(Context<E> &ctx) {
case R_SPARC_PCPLT22:
case R_SPARC_PCPLT10:
case R_SPARC_PLT64:
if (sym.is_imported || sym.is_ifunc())
if (sym.is_imported)
sym.flags |= NEEDS_PLT;
break;
case R_SPARC_GOT13:

View File

@ -633,7 +633,7 @@ void InputSection<E>::scan_relocations(Context<E> &ctx) {
}
if (sym.is_ifunc())
sym.flags |= NEEDS_GOT;
sym.flags |= (NEEDS_GOT | NEEDS_PLT);
switch (rel.r_type) {
case R_X86_64_8:
@ -681,7 +681,7 @@ void InputSection<E>::scan_relocations(Context<E> &ctx) {
}
case R_X86_64_PLT32:
case R_X86_64_PLTOFF64:
if (sym.is_imported || sym.is_ifunc())
if (sym.is_imported)
sym.flags |= NEEDS_PLT;
break;
case R_X86_64_TLSGD: {