summaryrefslogtreecommitdiff
path: root/scon.c
diff options
context:
space:
mode:
authorJohn van Groningen2015-11-02 12:07:33 +0000
committerJohn van Groningen2015-11-02 12:07:33 +0000
commit61a0d6576d4f6c8f7f615f3cf3ab3d6675c27fe9 (patch)
tree69ee40995306d87fda1dbe870a8241916be3c2be /scon.c
parentremove imports or exports of symbols that are not used or defined (diff)
set visibility of symbols to hidden on ARM,
otherwise the dynamic loader refuses to compute the relative address when loading a shared library, protected instead of hidden should also work
Diffstat (limited to 'scon.c')
-rw-r--r--scon.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/scon.c b/scon.c
index c101192..ae740c3 100644
--- a/scon.c
+++ b/scon.c
@@ -143,6 +143,9 @@ void set_home_and_appl_path (char *command)
}
#if defined (SOLARIS) || defined (I486) || defined (ARM)
+# if defined (ARM) && defined (PIC)
+__attribute__ ((visibility("hidden")))
+# endif
extern long ab_stack_size,heap_size,flags;
#else
extern long stack_size,heap_size,flags;
@@ -152,6 +155,9 @@ extern long stack_size,heap_size,flags;
extern long ab_stack_size=512*1024,heap_size=2048*1024,flags=8;
*/
#ifdef MARKING_GC
+# if defined (ARM) && defined (PIC)
+__attribute__ ((visibility("hidden")))
+# endif
extern long heap_size_multiple,initial_heap_size;
#endif