Blame SOURCES/binutils-2.19.50.0.1-output-format.sed

01a2c8
# Generate OUTPUT_FORMAT line for .so files from the system linker output.
01a2c8
# Imported from glibc/Makerules.
01a2c8
01a2c8
/ld.*[ 	]-E[BL]/b f
01a2c8
/collect.*[ 	]-E[BL]/b f
01a2c8
/OUTPUT_FORMAT[^)]*$/{N
01a2c8
s/\n[	 ]*/ /
01a2c8
}
01a2c8
t o
01a2c8
: o
01a2c8
s/^.*OUTPUT_FORMAT(\([^,]*\), \1, \1).*$/OUTPUT_FORMAT(\1)/
01a2c8
t q
01a2c8
s/^.*OUTPUT_FORMAT(\([^,]*\), \([^,]*\), \([^,]*\)).*$/\1,\2,\3/
01a2c8
t s
01a2c8
s/^.*OUTPUT_FORMAT(\([^,)]*\).*$)/OUTPUT_FORMAT(\1)/
01a2c8
t q
01a2c8
d
01a2c8
: s
01a2c8
s/"//g
01a2c8
G
01a2c8
s/\n//
01a2c8
s/^\([^,]*\),\([^,]*\),\([^,]*\),B/OUTPUT_FORMAT(\2)/p
01a2c8
s/^\([^,]*\),\([^,]*\),\([^,]*\),L/OUTPUT_FORMAT(\3)/p
01a2c8
s/^\([^,]*\),\([^,]*\),\([^,]*\)/OUTPUT_FORMAT(\1)/p
01a2c8
/,/s|^|*** BUG in libc/scripts/output-format.sed *** |p
01a2c8
q
01a2c8
: q
01a2c8
s/"//g
01a2c8
p
01a2c8
q
01a2c8
: f
01a2c8
s/^.*[ 	]-E\([BL]\)[ 	].*$/,\1/
01a2c8
t h
01a2c8
s/^.*[ 	]-E\([BL]\)$/,\1/
01a2c8
t h
01a2c8
d
01a2c8
: h
01a2c8
h