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

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