diff --git a/cmd/extract_linker/main.go b/cmd/extract_linker/main.go index 1280553a5..5603b411a 100644 --- a/cmd/extract_linker/main.go +++ b/cmd/extract_linker/main.go @@ -114,6 +114,10 @@ func main() { fmt.Fprintln(asm, `.section .note.android.embedded_linker,"a",%note`) + // Discard the PT_INTERP section so that the linker doesn't need to be passed the + // --no-dynamic-linker flag. + fmt.Println(script, " /DISCARD/ : { *(.interp) }") + fmt.Fprintln(script, "}") fmt.Fprintln(script, "INSERT BEFORE .note.android.embedded_linker;")