Commit 974d0c01 authored by Simon Marlow's avatar Simon Marlow
Browse files

workaround for #1421 (Solaris linker being picky about .size)

parent c83f6043
......@@ -173,7 +173,13 @@ sub init_TARGET_STUFF {
$T_X86_BADJMP = '^\tjmp\s+[^\.\*]';
$T_MOVE_DIRVS = '^(\s*(\.(p2)?align\s.*|\.globl\s+\S+|\.text|\.data|\.section\s+.*|\.type\s+.*|\.size\s+\S+\s*,\s*\d+|\.ident.*|\.local.*)\n)';
$T_COPY_DIRVS = '^\s*\.(globl|type|size|local)';
if ( $TargetPlatform =~ /solaris2/ ) {
# newer Solaris linkers are picky about .size information, so
# omit it (see #1421)
$T_COPY_DIRVS = '^\s*\.(globl|local)';
} else {
$T_COPY_DIRVS = '^\s*\.(globl|type|size|local)';
}
$T_DOT_WORD = '\.(long|value|word|byte|zero)';
$T_DOT_GLOBAL = '\.globl';
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment