File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -854,7 +854,7 @@ static int load_elf_binary(struct linux_binprm *bprm)
854
854
unsigned long error ;
855
855
struct elf_phdr * elf_ppnt , * elf_phdata , * interp_elf_phdata = NULL ;
856
856
struct elf_phdr * elf_property_phdata = NULL ;
857
- unsigned long elf_bss , elf_brk ;
857
+ unsigned long elf_brk ;
858
858
int retval , i ;
859
859
unsigned long elf_entry ;
860
860
unsigned long e_entry ;
@@ -1045,7 +1045,6 @@ static int load_elf_binary(struct linux_binprm *bprm)
1045
1045
if (retval < 0 )
1046
1046
goto out_free_dentry ;
1047
1047
1048
- elf_bss = 0 ;
1049
1048
elf_brk = 0 ;
1050
1049
1051
1050
start_code = ~0UL ;
@@ -1208,8 +1207,6 @@ static int load_elf_binary(struct linux_binprm *bprm)
1208
1207
1209
1208
k = elf_ppnt -> p_vaddr + elf_ppnt -> p_filesz ;
1210
1209
1211
- if (k > elf_bss )
1212
- elf_bss = k ;
1213
1210
if ((elf_ppnt -> p_flags & PF_X ) && end_code < k )
1214
1211
end_code = k ;
1215
1212
if (end_data < k )
@@ -1221,7 +1218,6 @@ static int load_elf_binary(struct linux_binprm *bprm)
1221
1218
1222
1219
e_entry = elf_ex -> e_entry + load_bias ;
1223
1220
phdr_addr += load_bias ;
1224
- elf_bss += load_bias ;
1225
1221
elf_brk += load_bias ;
1226
1222
start_code += load_bias ;
1227
1223
end_code += load_bias ;
You can’t perform that action at this time.
0 commit comments