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

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