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