source: umon/main/common/aout.h @ 87db514

Last change on this file since 87db514 was 87db514, checked in by Amar Takhar <amar@…>, on 04/16/15 at 19:26:21

Initial commit of the umon repository.

Prior to this three changes were made:

  • Remove umon_ prefix from parent directories.
  • Collapse main/target/ into main/
  • Remove ports/template/flashtest.scr.ucon script.
  • Property mode set to 100644
File size: 1.7 KB
Line 
1/**************************************************************************
2 *
3 * Copyright (c) 2013 Alcatel-Lucent
4 *
5 * Alcatel Lucent licenses this file to You under the Apache License,
6 * Version 2.0 (the "License"); you may not use this file except in
7 * compliance with the License.  A copy of the License is contained the
8 * file LICENSE at the top level of this repository.
9 * You may also obtain a copy of the License at:
10 *
11 *      http://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
18 *
19 **************************************************************************
20 *
21 * aout.h:
22 *
23 *      Header file for the AOUT file format used by TFS.
24 *
25 * Original author:     Ed Sutter (ed.sutter@alcatel-lucent.com)
26 *
27 */
28#ifndef _AOUT_H_
29#define _AOUT_H_
30
31struct exec {
32        unsigned short  a_mid;
33        unsigned short  a_magic;
34        unsigned long   a_text;         /* Size of text segment in bytes */
35        unsigned long   a_data;         /* Size of data segment in bytes */
36        unsigned long   a_bss;          /* Size of bss segment in bytes */
37        unsigned long   a_syms;         /* Size of symbol table in bytes */
38        unsigned long   a_entry;        /* Entry point address */
39        unsigned long   a_trsize;       /* Size of text relocation table */
40        unsigned long   a_drsize;       /* Size of data relocation table */
41};
42
43struct relocation_info {
44        int             r_address;
45        ulong           r_info;
46};
47
48/* Fields within r_info: */
49#define SYMNUM_MSK      0xffffff00
50#define PCREL_MSK       0x00000080
51#define LENGTH_MSK      0x00000060
52#define EXTERN_MSK      0x00000010
53#endif
Note: See TracBrowser for help on using the repository browser.