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

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