aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJ. Kean Johnston <jkj@sco.com>1997-11-17 06:01:57 +0000
committerJeff Law <law@gcc.gnu.org>1997-11-16 23:01:57 -0700
commit9155d500fb80973d5c88f52d4b89fb4fdbe7ede2 (patch)
treeacea0f07757debd4fa2ec686a2c59111b4c6484d
parent4931312c08d815077eefe84785f12b4c6bffe02f (diff)
downloadgcc-9155d500fb80973d5c88f52d4b89fb4fdbe7ede2.zip
gcc-9155d500fb80973d5c88f52d4b89fb4fdbe7ede2.tar.gz
gcc-9155d500fb80973d5c88f52d4b89fb4fdbe7ede2.tar.bz2
sco5.h (ASM_OUTPUT_ALIGNED_BSS): Define.
* i386/sco5.h (ASM_OUTPUT_ALIGNED_BSS): Define. (SELECT_RTX_SECTION): Define. (LIBGCC_SPEC, LIB_SPEC): Do the right thing for PIC. From-SVN: r16532
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/config/i386/sco5.h27
2 files changed, 32 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index cc2a077..c99a44d 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+Sun Nov 16 23:01:40 1997 J. Kean Johnston <jkj@sco.com>
+
+ * i386/sco5.h (ASM_OUTPUT_ALIGNED_BSS): Define.
+ (SELECT_RTX_SECTION): Define.
+ (LIBGCC_SPEC, LIB_SPEC): Do the right thing for PIC.
+
Sun Nov 16 22:47:03 1997 Manfred Hollstein <manfred@s-direktnet.de>
* Makefile.in (compare, compare-lean): Define $stage for each
diff --git a/gcc/config/i386/sco5.h b/gcc/config/i386/sco5.h
index a074914..8a88e10 100644
--- a/gcc/config/i386/sco5.h
+++ b/gcc/config/i386/sco5.h
@@ -284,6 +284,14 @@ do { \
} \
} while (0)
+/* A C statement (sans semicolon) to output to the stdio stream
+ FILE the assembler definition of uninitialized global DECL named
+ NAME whose size is SIZE bytes and alignment is ALIGN bytes.
+ Try to use asm_output_aligned_bss to implement this macro. */
+
+#define ASM_OUTPUT_ALIGNED_BSS(FILE, DECL, NAME, SIZE, ALIGN) \
+ asm_output_aligned_bss (FILE, DECL, NAME, SIZE, ALIGN)
+
#undef ESCAPES
#define ESCAPES \
"\1\1\1\1\1\1\1\1btn\1fr\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\
@@ -367,6 +375,19 @@ do { \
fprintf ((FILE), "\n"); \
} while (0)
+/* Must use data section for relocatable constants when pic. */
+#undef SELECT_RTX_SECTION
+#define SELECT_RTX_SECTION(MODE,RTX) \
+{ \
+ if (TARGET_ELF) { \
+ if (flag_pic && symbolic_operand (RTX)) \
+ data_section (); \
+ else \
+ const_section (); \
+ } else \
+ readonly_data_section(); \
+}
+
#undef ASM_OUTPUT_CASE_LABEL
#define ASM_OUTPUT_CASE_LABEL(FILE,PREFIX,NUM,JUMPTABLE) \
do { \
@@ -883,7 +904,11 @@ dtors_section () \
#undef LIB_SPEC
#define LIB_SPEC \
- "%{!shared:%{!symbolic:-lcrypt -lgen -lc}}"
+ "%{shared:pic/libgcc.a%s}%{!shared:%{!symbolic:-lcrypt -lgen -lc}}"
+
+#undef LIBGCC_SPEC
+#define LIBGCC_SPEC \
+ "%{!shared:-lgcc}"
#define MASK_COFF 010000000000 /* Mask for elf generation */
#define TARGET_COFF (target_flags & MASK_COFF)