diff options
author | nate <nate@FreeBSD.org> | 1995-03-02 20:29:18 +0000 |
---|---|---|
committer | nate <nate@FreeBSD.org> | 1995-03-02 20:29:18 +0000 |
commit | 435db6873c6734db58fbf42647479e6938964108 (patch) | |
tree | 06eb0fef43a737e2629f8188515fa539272b80e9 /gnu | |
parent | ddc8c1088d1cc9c5053177b2a398c15971140425 (diff) | |
download | FreeBSD-src-435db6873c6734db58fbf42647479e6938964108.zip FreeBSD-src-435db6873c6734db58fbf42647479e6938964108.tar.gz |
Add the abilitity to compile the Lites code with the native FreeBSD assembler.
(This adds minor support for the .bss directive)
Submitted by: Many folks, but I believe Remy Card was the first person to
propose this change.
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/usr.bin/as/subsegs.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/gnu/usr.bin/as/subsegs.c b/gnu/usr.bin/as/subsegs.c index af2d4e7..6e9481f 100644 --- a/gnu/usr.bin/as/subsegs.c +++ b/gnu/usr.bin/as/subsegs.c @@ -22,7 +22,7 @@ */ #ifndef lint -static char rcsid[] = "$Id: subsegs.c,v 1.3 1993/10/02 20:57:54 pk Exp $"; +static char rcsid[] = "$Id: subsegs.c,v 1.2 1993/11/03 00:52:19 paul Exp $"; #endif #include "as.h" @@ -140,6 +140,9 @@ register int subseg; if (seg == SEG_DATA) { seg_fix_rootP = &data_fix_root; seg_fix_tailP = &data_fix_tail; + } else if (seg == SEG_BSS) { + seg_fix_rootP = &bss_fix_root; + seg_fix_tailP = &bss_fix_tail; } else { know (seg == SEG_TEXT); seg_fix_rootP = &text_fix_root; @@ -171,7 +174,7 @@ register subsegT subseg; { long tmp; /* JF for obstack alignment hacking */ #ifndef MANY_SEGMENTS - know(seg == SEG_DATA || seg == SEG_TEXT); + know(seg == SEG_DATA || seg == SEG_TEXT || seg == SEG_BSS); #endif if (seg != now_seg || subseg != now_subseg) { /* we just changed sub-segments */ |