From a211c7b90679f64a73fc10b78a45ff7a64a044a1 Mon Sep 17 00:00:00 2001 From: Michael Meissner Date: Sun, 7 Jan 1996 22:00:44 +0000 Subject: Allow large alignments on ELF systems From-SVN: r10951 --- gcc/config/mips/elf.h | 7 +++++++ gcc/config/mips/elf64.h | 7 +++++++ gcc/config/svr4.h | 7 +++++++ 3 files changed, 21 insertions(+) (limited to 'gcc') diff --git a/gcc/config/mips/elf.h b/gcc/config/mips/elf.h index 9a85ae3..8f5e32b 100644 --- a/gcc/config/mips/elf.h +++ b/gcc/config/mips/elf.h @@ -44,3 +44,10 @@ do { \ extern FILE *asm_out_text_file; \ fprintf (asm_out_text_file, "\t.etype\t0x%x;", (a)); \ } while (0) + +/* Biggest alignment supported by the object file format of this + machine. Use this macro to limit the alignment which can be + specified using the `__attribute__ ((aligned (N)))' construct. If + not defined, the default value is `BIGGEST_ALIGNMENT'. */ + +#define MAX_OFILE_ALIGNMENT (32768*8) diff --git a/gcc/config/mips/elf64.h b/gcc/config/mips/elf64.h index 0812665..c9e1b2a 100644 --- a/gcc/config/mips/elf64.h +++ b/gcc/config/mips/elf64.h @@ -69,6 +69,13 @@ Boston, MA 02111-1307, USA. */ #include "gofast.h" #define INIT_TARGET_OPTABS INIT_GOFAST_OPTABS +/* Biggest alignment supported by the object file format of this + machine. Use this macro to limit the alignment which can be + specified using the `__attribute__ ((aligned (N)))' construct. If + not defined, the default value is `BIGGEST_ALIGNMENT'. */ + +#define MAX_OFILE_ALIGNMENT (32768*8) + /* We need to use .esize and .etype instead of .size and .type to avoid conflicting with ELF directives. */ #undef PUT_SDB_SIZE diff --git a/gcc/config/svr4.h b/gcc/config/svr4.h index 15f07e1..18eaca5 100644 --- a/gcc/config/svr4.h +++ b/gcc/config/svr4.h @@ -476,6 +476,13 @@ do { \ ASM_OUTPUT_ALIGNED_COMMON (FILE, NAME, SIZE, ALIGN); \ } while (0) +/* Biggest alignment supported by the object file format of this + machine. Use this macro to limit the alignment which can be + specified using the `__attribute__ ((aligned (N)))' construct. If + not defined, the default value is `BIGGEST_ALIGNMENT'. */ + +#define MAX_OFILE_ALIGNMENT (32768*8) + /* This is the pseudo-op used to generate a 32-bit word of data with a specific value in some section. This is the same for all known svr4 assemblers. */ -- cgit v1.1