diff --git a/cc/config/global.go b/cc/config/global.go index 330cb1067..3e7637382 100644 --- a/cc/config/global.go +++ b/cc/config/global.go @@ -91,7 +91,8 @@ var ( // TODO(b/109657296): needs --no-rosegment until Android // stack unwinder can handle the read-only segment. "-Wl,--no-rosegment", - "-Wl,--pack-dyn-relocs=android", + "-Wl,--pack-dyn-relocs=android+relr", + "-Wl,--use-android-relr-tags", "-fuse-ld=lld", }...)