A.out
Encyclopedia
|
| Tutorials | Encyclopedia | Dictionary | Directory |
|
![]()
A.out
a.out is a file format used in older versions of Unix-like computer operating systems for executables, object code, and, in later systems, shared libraries. The name stands for assembler output. a.out remains the default output file name for executables created by certain compilers/linkers when no output name is specified, even though these executables are no longer in the a.out format.[1]
UseAn a.out format for the PDP-7, similar to the a.out format used on the PDP-11, appeared in the first edition of UNIX.[2] It was superseded by the COFF format in AT&T Unix System V, which was in turn superseded by ELF in System V Release 4. Though Berkeley Unix kept using a.out for some time, modern BSD-systems have since switched to ELF. NetBSD/i386 switched formally from a.out to ELF in its 1.5 release. FreeBSD/i386 switched to ELF during the 2.2 to 3.0 transition. The a.out format has no direct support for debug information, but can be used with stabs, which uses special symbol table entries to store data. Linux also used a.out until kernel 1.2 (ELF support was added in the experimental 1.1.52), when it was superseded by ELF for that platform as well.[3] Linux's transition to ELF was more or less forced due to the complex nature of building a.out shared libraries on that platform, which included the need to register the virtual address space at which the library was located with a central authority, as the a.out ld.so in Linux was unable to relocate shared libraries.[4] The various BSD flavours were able to continue using a.out binaries long after Linux was forced to switch to ELF, due to the somewhat more flexible nature of the BSD a.out format compared to that of Linux.[5] Formata.out executables typically came in one of several variants, OMAGIC, NMAGIC, QMAGIC, or ZMAGIC. The OMAGIC format had contiguous segments after the header, with no separation of text and data. The NMAGIC format was similar to OMAGIC, however the data segment was loaded on the immediate next page after the end of the text segment, and the text segment was marked read-only. The ZMAGIC format added support for demand paging, and QMAGIC allowed the a.out header to be merged with the first page of the text segment, typically saving a page worth of memory. QMAGIC binaries were typically loaded one page above the bottom of the virtual address space, in order to permit trapping of null pointer dereferences via a segmentation fault. An a.out file consists of up to 7 sections. In order, these sections are:
See AlsoReferencesExternal linksde:A.out fr:A.out ko:A.out it:A.out ja:A.out?????? pl:A.out pt:A.out sk:A.out
Source: Wikipedia | The above article is available under the GNU FDL. | Edit this article
|
|
top
©2008-2009 TutorGig.com. All Rights Reserved. Privacy Statement