mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 956398 - Only support text relocations for libflashplayer.so. r=nfroyd
This commit is contained in:
parent
6bee3b5ae5
commit
7d7c694103
@ -576,7 +576,12 @@ CustomElf::InitDyn(const Phdr *pt_dyn)
|
||||
}
|
||||
break;
|
||||
case DT_TEXTREL:
|
||||
has_text_relocs = true;
|
||||
if (strcmp("libflashplayer.so", GetName()) == 0) {
|
||||
has_text_relocs = true;
|
||||
} else {
|
||||
LOG("%s: Text relocations are not supported", GetPath());
|
||||
return false;
|
||||
}
|
||||
break;
|
||||
case DT_STRSZ: /* Ignored */
|
||||
debug_dyn("DT_STRSZ", dyn);
|
||||
@ -647,7 +652,12 @@ CustomElf::InitDyn(const Phdr *pt_dyn)
|
||||
Addr flags = dyn->d_un.d_val;
|
||||
/* Treat as a DT_TEXTREL tag */
|
||||
if (flags & DF_TEXTREL) {
|
||||
has_text_relocs = true;
|
||||
if (strcmp("libflashplayer.so", GetName()) == 0) {
|
||||
has_text_relocs = true;
|
||||
} else {
|
||||
LOG("%s: Text relocations are not supported", GetPath());
|
||||
return false;
|
||||
}
|
||||
}
|
||||
/* we can treat this like having a DT_SYMBOLIC tag */
|
||||
flags &= ~DF_SYMBOLIC;
|
||||
|
Loading…
Reference in New Issue
Block a user