Commit 5b33f5fd authored by simonm's avatar simonm
Browse files

[project @ 1998-05-15 14:15:29 by simonm]

Fix splitting on i386-unknwon-linux: string constants were being
duplicated in each object, leading to large increases in binary
sizes.
parent d18f2902
......@@ -312,7 +312,7 @@ sub process_asm_block_iX86 {
$str = "\.text\n\t.align 4\n" . $str;
# remove/record any literal constants defined here
while ( ($str =~ /((LC\d+):\n\t\.ascii.*\n)/ )) {
while ( ($str =~ /((\.?LC\d+):\n\t\.(ascii|string).*\n)/ )) {
local($label) = $2;
local($body) = $1;
......@@ -321,7 +321,7 @@ sub process_asm_block_iX86 {
$LocalConstant{$label} = $body;
$str =~ s/LC\d+:\n\t\.ascii.*\n//;
$str =~ s/\.?LC\d+:\n\t\.(ascii|string).*\n//;
}
# inject definitions for any local constants now used herein
......
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