blob: 364f52059fe24abd85e64614faf51c49d7b95ac1 [file] [log] [blame]
lh9ed821d2023-04-07 01:36:19 -07001/ld.*[ ]-E[BL]/b f
2/collect.*[ ]-E[BL]/b f
3/OUTPUT_FORMAT[^)]*$/{N
4s/\n[ ]*/ /
5}
6t o
7: o
8s/^.*OUTPUT_FORMAT(\([^,]*\), \1, \1).*$/OUTPUT_FORMAT(\1)/
9t q
10s/^.*OUTPUT_FORMAT(\([^,]*\), \([^,]*\), \([^,]*\)).*$/\1,\2,\3/
11t s
12s/^.*OUTPUT_FORMAT(\([^,)]*\).*$)/OUTPUT_FORMAT(\1)/
13t q
14d
15: s
16s/"//g
17G
18s/\n//
19s/^\([^,]*\),\([^,]*\),\([^,]*\),B/OUTPUT_FORMAT(\2)/p
20s/^\([^,]*\),\([^,]*\),\([^,]*\),L/OUTPUT_FORMAT(\3)/p
21s/^\([^,]*\),\([^,]*\),\([^,]*\)/OUTPUT_FORMAT(\1)/p
22/,/s|^|*** BUG in libc/scripts/output-format.sed *** |p
23q
24: q
25s/"//g
26p
27q
28: f
29s/^.*[ ]-E\([BL]\)[ ].*$/,\1/
30t h
31s/^.*[ ]-E\([BL]\)$/,\1/
32t h
33d
34: h
35h