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

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