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

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