File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -1049,7 +1049,11 @@ Error LinuxKernelRewriter::readStaticCalls() {
10491049 " no section matching __start_static_call_sites" );
10501050
10511051 StaticCallSection = *ErrorOrSection;
1052- if (!StaticCallSection->containsAddress (Stop->getAddress () - 1 ))
1052+ // In order to support kernels of different versions and architechures(such as
1053+ // aarch64 linux kernel5.10), we allow the address of the start and stop to be
1054+ // same.
1055+ if (!StaticCallSection->containsAddress (Stop->getAddress () - 1 ) &&
1056+ StaticCallTableAddress != Stop->getAddress ())
10531057 return createStringError (errc::executable_format_error,
10541058 " __stop_static_call_sites not in the same section "
10551059 " as __start_static_call_sites" );
You can’t perform that action at this time.
0 commit comments