revert between 56095 -> 55830 in arch
[AROS.git] / tools / fd2inline / cross / share / splitasm.awk
blob89cf7416298cd70bc1ce4a4225b73f5788631ae7
1 #! /bin/awk -f
3 # splitasm.awk
5 # Copyright (C) 2000 Emmanuel Lesueur <lesueur@club-internet.fr>
6 # Distributed under terms of GNU General Public License.
8 # This file is part of fd2inline package.
10 # It is used to create linker libraries with stubs for MorphOS.
11 # (And AmigaOS. And Amithlon. /Martin Blom)
13 BEGIN {
14 dir=dest
17 /^[\t ]?.globl[\t ]/ {
18 currfn=dir "/" $2 ".s"
19 print "\t.text\n\t.balign\t4\n" >currfn
20 # print "\t.section\t\".text\"\n\t.align\t2\n" >currfn
23 currfn!="" {
24 print $0 >currfn
27 /^[\t ].size/ {
28 close(currfn)
29 currfn=""
32 /^[\t ]rts/ {
33 close(currfn)
34 currfn=""