OSDN Git Service

* i386/sco5.h (ASM_OUTPUT_ALIGNED_BSS): Define.
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 17 Nov 1997 06:01:57 +0000 (06:01 +0000)
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 17 Nov 1997 06:01:57 +0000 (06:01 +0000)
        (SELECT_RTX_SECTION): Define.
        (LIBGCC_SPEC, LIB_SPEC): Do the right thing for PIC.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@16532 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/i386/sco5.h

index cc2a077..c99a44d 100644 (file)
@@ -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
index a074914..8a88e10 100644 (file)
@@ -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)