| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Mac OS X ABI Mach-O File Format | 2 * Mac OS X ABI Mach-O File Format |
| 3 * | 3 * |
| 4 * Copyright (C) 2007 Henryk Richter, built upon xdf objfmt (C) Peter Johnson | 4 * Copyright (C) 2007 Henryk Richter, built upon xdf objfmt (C) Peter Johnson |
| 5 * | 5 * |
| 6 * | 6 * |
| 7 * Redistribution and use in source and binary forms, with or without | 7 * Redistribution and use in source and binary forms, with or without |
| 8 * modification, are permitted provided that the following conditions | 8 * modification, are permitted provided that the following conditions |
| 9 * are met: | 9 * are met: |
| 10 * 1. Redistributions of source code must retain the above copyright | 10 * 1. Redistributions of source code must retain the above copyright |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 [extern bar] | 84 [extern bar] |
| 85 section .data | 85 section .data |
| 86 dq bar-foo | 86 dq bar-foo |
| 87 | 87 |
| 88 Will currently produce an error though the necessary means are provided | 88 Will currently produce an error though the necessary means are provided |
| 89 by the Mach-O specification. | 89 by the Mach-O specification. |
| 90 | 90 |
| 91 */ | 91 */ |
| 92 | 92 |
| 93 #include <util.h> | 93 #include <util.h> |
| 94 /*@unused@*/ RCSID("$Id: macho-objfmt.c 2345 2010-08-01 01:27:40Z peter $"); | |
| 95 | 94 |
| 96 #include <libyasm.h> | 95 #include <libyasm.h> |
| 97 | 96 |
| 98 /* MACH-O DEFINES */ | 97 /* MACH-O DEFINES */ |
| 99 /* Mach-O in-file header structure sizes (32 BIT, see below for 64 bit defs) */ | 98 /* Mach-O in-file header structure sizes (32 BIT, see below for 64 bit defs) */ |
| 100 #define MACHO_HEADER_SIZE 28 | 99 #define MACHO_HEADER_SIZE 28 |
| 101 #define MACHO_SEGCMD_SIZE 56 | 100 #define MACHO_SEGCMD_SIZE 56 |
| 102 #define MACHO_SECTCMD_SIZE 68 | 101 #define MACHO_SECTCMD_SIZE 68 |
| 103 #define MACHO_SYMCMD_SIZE 24 | 102 #define MACHO_SYMCMD_SIZE 24 |
| 104 #define MACHO_NLIST_SIZE 12 | 103 #define MACHO_NLIST_SIZE 12 |
| (...skipping 1514 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1619 NULL, /* no directives */ | 1618 NULL, /* no directives */ |
| 1620 NULL, /* no standard macros */ | 1619 NULL, /* no standard macros */ |
| 1621 macho64_objfmt_create, | 1620 macho64_objfmt_create, |
| 1622 macho_objfmt_output, | 1621 macho_objfmt_output, |
| 1623 macho_objfmt_destroy, | 1622 macho_objfmt_destroy, |
| 1624 macho_objfmt_add_default_section, | 1623 macho_objfmt_add_default_section, |
| 1625 macho_objfmt_init_new_section, | 1624 macho_objfmt_init_new_section, |
| 1626 macho_objfmt_section_switch, | 1625 macho_objfmt_section_switch, |
| 1627 macho_objfmt_get_special_sym | 1626 macho_objfmt_get_special_sym |
| 1628 }; | 1627 }; |
| OLD | NEW |