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