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

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