aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/ia64/hpux-unix2003.h
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/config/ia64/hpux-unix2003.h')
-rw-r--r--gcc/config/ia64/hpux-unix2003.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/config/ia64/hpux-unix2003.h b/gcc/config/ia64/hpux-unix2003.h
new file mode 100644
index 0000000..36418be
--- /dev/null
+++ b/gcc/config/ia64/hpux-unix2003.h
@@ -0,0 +1,8 @@
+
+/* For HP-UX 11.31 and greater, use unix2003.o instead of unix98.o to
+ get correct C99 snprintf behaviour with buffer overflow. */
+
+#undef STARTFILE_SPEC
+#define STARTFILE_SPEC "%{!shared:%{static:crt0%O%s} \
+ %{mlp64:/usr/lib/hpux64/unix2003%O%s} \
+ %{!mlp64:/usr/lib/hpux32/unix2003%O%s}}"