summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--build-id.lds12
1 files changed, 5 insertions, 7 deletions
diff --git a/build-id.lds b/build-id.lds
index ae54f64..63a23f2 100644
--- a/build-id.lds
+++ b/build-id.lds
@@ -1,11 +1,9 @@
SECTIONS
{
- __note_gnu_build_id_start = .;
-}
-INSERT BEFORE .note.gnu.build-id;
-
-SECTIONS
-{
- __note_gnu_build_id_end = .;
+ build-id : {
+ PROVIDE(__note_gnu_build_id_start = .);
+ *(.note.gnu.build-id);
+ PROVIDE(__note_gnu_build_id_end = .);
+ }
}
INSERT AFTER .note.gnu.build-id;