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

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