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

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