Merge "Use note in linker.s to place linker" am: b68048e520
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1765066 Change-Id: I3543ca4a24335ad87358cf7ebd878f9947f5a52c
This commit is contained in:
@@ -85,7 +85,7 @@ func main() {
|
||||
|
||||
fmt.Fprintf(asm, ".globl %s\n%s:\n\n", symName, symName)
|
||||
|
||||
fmt.Fprintf(script, " %s %d : {\n", sectionName, baseLoadAddr+prog.Vaddr)
|
||||
fmt.Fprintf(script, " %s 0x%x : {\n", sectionName, baseLoadAddr+prog.Vaddr)
|
||||
fmt.Fprintf(script, " KEEP(*(%s));\n", sectionName)
|
||||
fmt.Fprintln(script, " }")
|
||||
|
||||
@@ -106,8 +106,10 @@ func main() {
|
||||
load += 1
|
||||
}
|
||||
|
||||
fmt.Fprintln(asm, `.section .note.android.embedded_linker,"a",%note`)
|
||||
|
||||
fmt.Fprintln(script, "}")
|
||||
fmt.Fprintln(script, "INSERT BEFORE .note.android.ident;")
|
||||
fmt.Fprintln(script, "INSERT BEFORE .note.android.embedded_linker;")
|
||||
|
||||
if asmPath != "" {
|
||||
if err := ioutil.WriteFile(asmPath, asm.Bytes(), 0777); err != nil {
|
||||
|
Reference in New Issue
Block a user