home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   alt.os.development      Operating system development chatter      4,255 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 4,102 of 4,255   
   Robert Pengelly to All   
   Original a.out specification query   
   07 Feb 24 06:31:50   
   
   From: robertapengelly@gmail.com   
      
   I've been doing a little research into a.out and found two references that I'm   
   confused about.   
      
   Looking at https://gunkies.org/wiki/UNIX_a.out_file it has:   
      
   Offset 	Contents   
   0       A magic number (below)   
   2       Program text size   
   4       Initialized data size   
   6       Uninitialized (BSS) data size   
   010     Symbol table size   
   012     Entry location   
   014     Unused   
   016     Flag indicating relocation information has been suppressed    
      
   and looking at https://www.bell-labs.com/usr/dmr/www/man51.pdf it has:   
      
   The header always contains 6 words:   
   1 a “br .+14” instruction (205(8))   
   2 The size of the program text   
   3 The size of the symbol table   
   4 The size of the relocation bits area   
   5 The size of a data area   
   6 A zero word (unused at present)   
      
   What size is a word exactly?  I know that a.out is from the original Unix that   
   ran on the PDP-7/PDP-11 but I don't know what a word size was (16-bits vs   
   32-bits).   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca