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

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