summaryrefslogtreecommitdiffstats
path: root/tools/apriori/tweak.h
diff options
context:
space:
mode:
Diffstat (limited to 'tools/apriori/tweak.h')
-rwxr-xr-xtools/apriori/tweak.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/tools/apriori/tweak.h b/tools/apriori/tweak.h
new file mode 100755
index 0000000..3afedee
--- /dev/null
+++ b/tools/apriori/tweak.h
@@ -0,0 +1,15 @@
+#ifndef TWEAK_H
+#define TWEAK_H
+
+#include <source.h>
+
+/* This function will break up the .bss section into multiple subsegments,
+ depending on whether the .bss segment contains copy-relocated symbols. This
+ will produce a nonstandard ELF file (with multiple .bss sections), tht the
+ linker will need to know how to handle. The return value is the number of
+ segments that the .bss segment was broken into (zero if the .bss segment was
+ not modified. */
+
+int tweak_bss_if_necessary(source_t *source);
+
+#endif/*TWEAK_H*/