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