aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/vdso/vdso2c.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/vdso/vdso2c.h')
-rw-r--r--arch/x86/vdso/vdso2c.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/x86/vdso/vdso2c.h b/arch/x86/vdso/vdso2c.h
index df95a2fdff73..11b65d4f9414 100644
--- a/arch/x86/vdso/vdso2c.h
+++ b/arch/x86/vdso/vdso2c.h
@@ -93,6 +93,9 @@ static void BITSFUNC(copy_section)(struct BITSFUNC(fake_sections) *out,
93 uint64_t flags = GET_LE(&in->sh_flags); 93 uint64_t flags = GET_LE(&in->sh_flags);
94 94
95 bool copy = flags & SHF_ALLOC && 95 bool copy = flags & SHF_ALLOC &&
96 (GET_LE(&in->sh_size) ||
97 (GET_LE(&in->sh_type) != SHT_RELA &&
98 GET_LE(&in->sh_type) != SHT_REL)) &&
96 strcmp(name, ".altinstructions") && 99 strcmp(name, ".altinstructions") &&
97 strcmp(name, ".altinstr_replacement"); 100 strcmp(name, ".altinstr_replacement");
98 101