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