mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-13 08:53:20 +00:00
ICU-2242 Assembly generation updates
X-SVN-Rev: 14663
This commit is contained in:
parent
19f90e8399
commit
3e4ca7e34c
2 changed files with 35 additions and 27 deletions
icu4c/source
|
@ -4,7 +4,7 @@
|
|||
## Copyright (c) 1999-2003, International Business Machines Corporation and
|
||||
## others. All Rights Reserved.
|
||||
##
|
||||
## $Id: mh-darwin,v 1.30 2003/10/07 18:36:09 grhoten-oss Exp $
|
||||
## $Id: mh-darwin,v 1.31 2004/03/09 23:35:51 grhoten-oss Exp $
|
||||
|
||||
## Flags for position independent code
|
||||
SHAREDLIBCFLAGS = -dynamic
|
||||
|
@ -36,6 +36,8 @@ LD_RPATH_PRE=
|
|||
## Environment variable to set a runtime search path
|
||||
LDLIBRARYPATH_ENVVAR = DYLD_LIBRARY_PATH
|
||||
|
||||
GENCCODE_ASSEMBLY=-a gcc-darwin
|
||||
|
||||
## Shared object suffix
|
||||
SO= dylib
|
||||
## Non-shared intermediate object suffix
|
||||
|
|
|
@ -140,43 +140,49 @@ static const struct AssemblyType {
|
|||
const char *beginLine;
|
||||
} assemblyHeader[] = {
|
||||
{"gcc",
|
||||
".globl %s\n"
|
||||
"\t.section .rodata\n"
|
||||
"\t.align 8\n" /* Either align 8 bytes or 2^8 (256) bytes. 8 bytes is needed. */
|
||||
"%s:\n\n",
|
||||
|
||||
".globl %s\n"
|
||||
"\t.section .rodata\n"
|
||||
"\t.align 8\n" /* Either align 8 bytes or 2^8 (256) bytes. 8 bytes is needed. */
|
||||
"%s:\n\n",
|
||||
|
||||
".long "
|
||||
".long "
|
||||
},
|
||||
{"gcc-darwin",
|
||||
/*"\t.section __TEXT,__text,regular,pure_instructions\n"
|
||||
"\t.section __TEXT,__picsymbolstub1,symbol_stubs,pure_instructions,32\n"*/
|
||||
".globl _%s\n"
|
||||
"\t.data\n"
|
||||
"\t.const\n"
|
||||
"\t.align 4\n" /* 1<<4 = 16 */
|
||||
"_%s:\n\n",
|
||||
|
||||
/*"\t.section __TEXT,__text,regular,pure_instructions\n"
|
||||
"\t.section __TEXT,__picsymbolstub1,symbol_stubs,pure_instructions,32\n"*/
|
||||
".globl _%s\n"
|
||||
"\t.data\n"
|
||||
"\t.const\n"
|
||||
"\t.align 4\n" /* 1<<4 = 16 */
|
||||
"_%s:\n\n",
|
||||
|
||||
".long "
|
||||
".long "
|
||||
},
|
||||
{"sun",
|
||||
"\t.section \".rodata\"\n"
|
||||
"\t.align 16\n"
|
||||
".globl %s\n"
|
||||
"%s:\n",
|
||||
|
||||
"\t.section \".rodata\"\n"
|
||||
"\t.align 16\n"
|
||||
".globl %s\n"
|
||||
"%s:\n",
|
||||
|
||||
".word "
|
||||
".word "
|
||||
},
|
||||
{"xlc",
|
||||
".globl %s{RO}\n"
|
||||
"\t.toc\n"
|
||||
"%s:\n"
|
||||
"\t.csect %s{RO}, 4\n",
|
||||
|
||||
".globl %s{RO}\n"
|
||||
"\t.toc\n"
|
||||
"%s:\n"
|
||||
"\t.csect %s{RO}, 4\n",
|
||||
".long "
|
||||
}
|
||||
{"aCC",
|
||||
"\t.SPACE $TEXT$\n"
|
||||
"\t.SUBSPA $LIT$\n"
|
||||
"%s\n"
|
||||
"\t.EXPORT %s\n"
|
||||
"\t.ALIGN 16\n",
|
||||
|
||||
".long"}
|
||||
".WORD "
|
||||
},
|
||||
};
|
||||
|
||||
static int32_t assemblyHeaderIndex = -1;
|
||||
|
|
Loading…
Add table
Reference in a new issue