OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [config/] [i386/] [i386elf.h] - Blame information for rev 713

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 709 jeremybenn
/* Target definitions for GCC for Intel 80386 using ELF
2
   Copyright (C) 1988, 1991, 1995, 2000, 2001, 2002, 2007, 2008, 2010, 2011
3
   Free Software Foundation, Inc.
4
 
5
   Derived from sysv4.h written by Ron Guilmette (rfg@netcom.com).
6
 
7
This file is part of GCC.
8
 
9
GCC is free software; you can redistribute it and/or modify
10
it under the terms of the GNU General Public License as published by
11
the Free Software Foundation; either version 3, or (at your option)
12
any later version.
13
 
14
GCC is distributed in the hope that it will be useful,
15
but WITHOUT ANY WARRANTY; without even the implied warranty of
16
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17
GNU General Public License for more details.
18
 
19
You should have received a copy of the GNU General Public License
20
along with GCC; see the file COPYING3.  If not see
21
<http://www.gnu.org/licenses/>.  */
22
 
23
/* The ELF ABI for the i386 says that records and unions are returned
24
   in memory.  */
25
 
26
#define SUBTARGET_RETURN_IN_MEMORY(TYPE, FNTYPE) \
27
        (TYPE_MODE (TYPE) == BLKmode \
28
         || (VECTOR_MODE_P (TYPE_MODE (TYPE)) && int_size_in_bytes (TYPE) == 8))
29
 
30
#undef CPP_SPEC
31
#define CPP_SPEC ""
32
 
33
#define ENDFILE_SPEC "crtend.o%s"
34
 
35
#define STARTFILE_SPEC "%{!shared: \
36
                         %{!symbolic: \
37
                          %{pg:gcrt0.o%s}%{!pg:%{p:mcrt0.o%s}%{!p:crt0.o%s}}}}\
38
                        crtbegin.o%s"
39
 
40
#undef DBX_REGISTER_NUMBER
41
#define DBX_REGISTER_NUMBER(n) \
42
  (TARGET_64BIT ? dbx64_register_map[n] : svr4_dbx_register_map[n])
43
 
44
/* The routine used to output sequences of byte values.  We use a special
45
   version of this for most svr4 targets because doing so makes the
46
   generated assembly code more compact (and thus faster to assemble)
47
   as well as more readable.  Note that if we find subparts of the
48
   character sequence which end with NUL (and which are shorter than
49
   ELF_STRING_LIMIT) we output those using ASM_OUTPUT_LIMITED_STRING.  */
50
 
51
#undef ASM_OUTPUT_ASCII
52
#define ASM_OUTPUT_ASCII(FILE, STR, LENGTH)                             \
53
  do                                                                    \
54
    {                                                                   \
55
      const unsigned char *_ascii_bytes =                               \
56
        (const unsigned char *) (STR);                                  \
57
      const unsigned char *limit = _ascii_bytes + (LENGTH);             \
58
      unsigned bytes_in_chunk = 0;                                      \
59
      for (; _ascii_bytes < limit; _ascii_bytes++)                      \
60
        {                                                               \
61
          const unsigned char *p;                                       \
62
          if (bytes_in_chunk >= 64)                                     \
63
            {                                                           \
64
              fputc ('\n', (FILE));                                     \
65
              bytes_in_chunk = 0;                                       \
66
            }                                                           \
67
          for (p = _ascii_bytes; p < limit && *p != '\0'; p++)          \
68
            continue;                                                   \
69
          if (p < limit && (p - _ascii_bytes) <= (long) ELF_STRING_LIMIT) \
70
            {                                                           \
71
              if (bytes_in_chunk > 0)                                   \
72
                {                                                       \
73
                  fputc ('\n', (FILE));                                 \
74
                  bytes_in_chunk = 0;                                   \
75
                }                                                       \
76
              ASM_OUTPUT_LIMITED_STRING ((FILE), _ascii_bytes);         \
77
              _ascii_bytes = p;                                         \
78
            }                                                           \
79
          else                                                          \
80
            {                                                           \
81
              if (bytes_in_chunk == 0)                                  \
82
                fputs (ASM_BYTE, (FILE));                               \
83
              else                                                      \
84
                fputc (',', (FILE));                                    \
85
              fprintf ((FILE), "0x%02x", *_ascii_bytes);                        \
86
              bytes_in_chunk += 5;                                      \
87
            }                                                           \
88
        }                                                               \
89
      if (bytes_in_chunk > 0)                                           \
90
        fputc ('\n', (FILE));                                           \
91
    }                                                                   \
92
  while (0)
93
 
94
#define LOCAL_LABEL_PREFIX      "."
95
 
96
/* Switch into a generic section.  */
97
#define TARGET_ASM_NAMED_SECTION  default_elf_asm_named_section
98
 
99
#undef BSS_SECTION_ASM_OP
100
#define BSS_SECTION_ASM_OP "\t.section\t.bss"
101
 
102
#undef ASM_OUTPUT_ALIGNED_BSS
103
#define ASM_OUTPUT_ALIGNED_BSS(FILE, DECL, NAME, SIZE, ALIGN) \
104
  asm_output_aligned_bss (FILE, DECL, NAME, SIZE, ALIGN)

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.