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