|
|
1.1 ! root 1: .TH LINKDATA 1 ! 2: .SH NAME ! 3: link \- group data files into the text segment of a .o file ! 4: .SH SYNOPSIS ! 5: .B linkdata file1 file2 ... ! 6: .br ! 7: .SH DESCRIPTION ! 8: .PP ! 9: .IR linkdata ! 10: reads the named files and generates an a.out-format file on the ! 11: standard output. The resulting file is as if it were assembled from ! 12: the following .s file. (The files can be rather long, so it's not ! 13: a good idea to make an actual assembly language file.) ! 14: .DS L ! 15: .ft C ! 16: .text ! 17: .globl datalist ! 18: .set datalist, 1f+4 # if there are no files, use ".set datalist, 1" ! 19: ! 20: # repeat the following for each file ! 21: .align 2 ! 22: 1: .long 0x31 ! 23: .long 2f+4 ! 24: .long 3f+4 ! 25: .long 1f+4 # for the last file, use .long 1 instead ! 26: 2: .long strlen("filename")*16+15 ! 27: .ascii "filename" ! 28: .align 2 ! 29: 3: .word length(contents of file1)*16+15 ! 30: .byte [contents of file 1] ! 31: .align 2 ! 32: ! 33: .ft R ! 34: .DE
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.