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

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