From: J. Kean Johnston Date: Mon, 17 Nov 1997 06:01:57 +0000 (+0000) Subject: sco5.h (ASM_OUTPUT_ALIGNED_BSS): Define. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9155d500fb80973d5c88f52d4b89fb4fdbe7ede2;p=gcc.git 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index cc2a0770be9..c99a44d06fc 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +Sun Nov 16 23:01:40 1997 J. Kean Johnston + + * 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 * Makefile.in (compare, compare-lean): Define $stage for each diff --git a/gcc/config/i386/sco5.h b/gcc/config/i386/sco5.h index a074914fa14..8a88e108423 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)