ARMv7: Use --export-dynamic in kernel link.
authorDavid Cock <david.cock@inf.ethz.ch>
Mon, 17 Oct 2016 09:01:26 +0000 (11:01 +0200)
committerDavid Cock <david.cock@inf.ethz.ch>
Mon, 17 Oct 2016 09:01:26 +0000 (11:01 +0200)
This ensures that the got_base symbol (and others) appear in the dynamic
symbol table, without relying on the vagaries of the link.

Signed-off-by: David Cock <david.cock@inf.ethz.ch>

hake/ARMv7.hs

index 08a64dd..e8aeb99 100644 (file)
@@ -152,7 +152,8 @@ kernelLdFlags = [ Str "-Wl,-N",
                   Str "-nostdlib",
                   Str "-pie",
                   Str "-Wl,--fatal-warnings",
-                  Str "-Wl,--dynamic-list-data"
+                  Str "-Wl,--dynamic-list-data",
+                  Str "-Wl,--export-dynamic"
                 ]