summaryrefslogtreecommitdiff
path: root/absl/flags/flag_benchmark.lds
diff options
context:
space:
mode:
Diffstat (limited to 'absl/flags/flag_benchmark.lds')
-rw-r--r--absl/flags/flag_benchmark.lds13
1 files changed, 13 insertions, 0 deletions
diff --git a/absl/flags/flag_benchmark.lds b/absl/flags/flag_benchmark.lds
new file mode 100644
index 00000000..af115dfc
--- /dev/null
+++ b/absl/flags/flag_benchmark.lds
@@ -0,0 +1,13 @@
+/* This linker script forces the flags used by flags_benchmark
+ * into a separate page-aligned section. This isn't necessary for
+ * correctness but ensures that the benchmark results are more
+ * reproducible across unrelated code changes.
+ */
+SECTIONS {
+ .benchmark_flags : {
+ . = ALIGN(0x1000);
+ * (.benchmark_flags);
+ }
+}
+
+INSERT AFTER .data