diff options
author | 2022-02-25 18:25:45 -0800 | |
---|---|---|
committer | 2022-02-25 18:25:45 -0800 | |
commit | 36fd4eb081bf51852bc4656dc651ae4890224fcd (patch) | |
tree | 3b5caf49875457aca04cb74d31855291e107558a | |
parent | b0b94f618280ef706ec278026ea51e8e4b4e78ad (diff) |
Fix adding /DISCARD/ to linker script
I0e293944c5c804b4512fb834f8f18e1d6ecd053c accidentally used
Println instead of Fprintln, causing it to print the current
contents of the buffer instead of adding to it.
Bug: 216192129
Test: manual
Change-Id: I1ddeeef3443c1091cf729328cb8fd74c217432ec
-rw-r--r-- | cmd/extract_linker/main.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/extract_linker/main.go b/cmd/extract_linker/main.go index 5603b411a..aaca1ddc4 100644 --- a/cmd/extract_linker/main.go +++ b/cmd/extract_linker/main.go @@ -116,7 +116,7 @@ func main() { // 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, " /DISCARD/ : { *(.interp) }") fmt.Fprintln(script, "}") fmt.Fprintln(script, "INSERT BEFORE .note.android.embedded_linker;") |