exec_elf32.c (5e6220d9d0ed9bc47d825655629563debeb4c790) | exec_elf32.c (64b06e789711238551c56a7ef517dfa43ae3043c) |
---|---|
1/* 2 * Copyright (c) 1997 Christopher G. Demetriou. All rights reserved. 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 1. Redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer. --- 41 unchanged lines hidden (view full) --- 50#include <string.h> 51#include <unistd.h> 52 53#include "extern.h" 54 55#if (defined(NLIST_ELF32) && (ELFSIZE == 32)) || \ 56 (defined(NLIST_ELF64) && (ELFSIZE == 64)) 57 | 1/* 2 * Copyright (c) 1997 Christopher G. Demetriou. All rights reserved. 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 1. Redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer. --- 41 unchanged lines hidden (view full) --- 50#include <string.h> 51#include <unistd.h> 52 53#include "extern.h" 54 55#if (defined(NLIST_ELF32) && (ELFSIZE == 32)) || \ 56 (defined(NLIST_ELF64) && (ELFSIZE == 64)) 57 |
58#include <machine/elf.h> | 58#define __ELF_WORD_SIZE ELFSIZE 59#if (ELFSIZE == 32) 60#include <sys/elf32.h> 61#elif (ELFSIZE == 64) 62#include <sys/elf64.h> 63#endif 64#include <sys/elf_generic.h> |
59 60#define CONCAT(x,y) __CONCAT(x,y) 61#define ELFNAME(x) CONCAT(elf,CONCAT(ELFSIZE,CONCAT(_,x))) 62#define ELFNAME2(x,y) CONCAT(x,CONCAT(_elf,CONCAT(ELFSIZE,CONCAT(_,y)))) 63#define ELFNAMEEND(x) CONCAT(x,CONCAT(_elf,ELFSIZE)) 64#define ELFDEFNNAME(x) CONCAT(ELF,CONCAT(ELFSIZE,CONCAT(_,x))) 65 66struct listelem { --- 325 unchanged lines hidden --- | 65 66#define CONCAT(x,y) __CONCAT(x,y) 67#define ELFNAME(x) CONCAT(elf,CONCAT(ELFSIZE,CONCAT(_,x))) 68#define ELFNAME2(x,y) CONCAT(x,CONCAT(_elf,CONCAT(ELFSIZE,CONCAT(_,y)))) 69#define ELFNAMEEND(x) CONCAT(x,CONCAT(_elf,ELFSIZE)) 70#define ELFDEFNNAME(x) CONCAT(ELF,CONCAT(ELFSIZE,CONCAT(_,x))) 71 72struct listelem { --- 325 unchanged lines hidden --- |