Rename some files for clarity
This commit is contained in:
parent
7c59c2e940
commit
2b81c565b8
|
@ -23,7 +23,7 @@
|
|||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include "elf/common.h"
|
||||
#include "elf/format.h"
|
||||
#include "elf/elf.h"
|
||||
|
||||
|
||||
/* ELF */
|
||||
|
|
38
src/format/elf/elf.h
Normal file
38
src/format/elf/elf.h
Normal file
|
@ -0,0 +1,38 @@
|
|||
/* $Id$ */
|
||||
/* Copyright (c) 2015 Pierre Pronchery <khorben@defora.org> */
|
||||
/* This file is part of DeforaOS Devel Asm */
|
||||
/* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Lesser General Public License as published by
|
||||
* the Free Software Foundation, version 3 of the License.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>. */
|
||||
|
||||
|
||||
#ifndef ASM_FORMAT_ELF_FORMAT_H
|
||||
# define ASM_FORMAT_ELF_FORMAT_H
|
||||
|
||||
# include "common.h"
|
||||
|
||||
|
||||
/* functions */
|
||||
/* ELF32 */
|
||||
int elf32_init(AsmFormatPlugin * format);
|
||||
int elf32_destroy(AsmFormatPlugin * format);
|
||||
int elf32_section(AsmFormatPlugin * format, char const * name);
|
||||
char const * elf32_detect(AsmFormatPlugin * format, Elf32_Ehdr * ehdr);
|
||||
int elf32_decode(AsmFormatPlugin * format, int raw);
|
||||
|
||||
/* ELF64 */
|
||||
int elf64_init(AsmFormatPlugin * format);
|
||||
int elf64_destroy(AsmFormatPlugin * format);
|
||||
int elf64_section(AsmFormatPlugin * format, char const * name);
|
||||
char const * elf64_detect(AsmFormatPlugin * format, Elf64_Ehdr * ehdr);
|
||||
int elf64_decode(AsmFormatPlugin * format, int raw);
|
||||
|
||||
#endif
|
|
@ -17,9 +17,9 @@
|
|||
|
||||
#include <System.h>
|
||||
#define ELFSIZE 32
|
||||
#include "format.h"
|
||||
#include "elf.h"
|
||||
|
||||
#include "format.c"
|
||||
#include "elf.c"
|
||||
|
||||
|
||||
/* ELF32 */
|
||||
|
|
|
@ -17,9 +17,9 @@
|
|||
|
||||
#include <System.h>
|
||||
#define ELFSIZE 64
|
||||
#include "format.h"
|
||||
#include "elf.h"
|
||||
|
||||
#include "format.c"
|
||||
#include "elf.c"
|
||||
|
||||
|
||||
/* ELF64 */
|
||||
|
|
|
@ -3,7 +3,7 @@ cppflags_force=-I ../../include
|
|||
cflags_force=-W `pkg-config --cflags libSystem`
|
||||
cflags=-Wall -g -O2 -fPIC -pedantic
|
||||
ldflags_force=-W `pkg-config --libs libSystem`
|
||||
dist=Makefile,elf/common.h,elf/format.h,elf/format.c
|
||||
dist=Makefile,elf/common.h,elf/elf.h,elf/elf.c
|
||||
|
||||
[dex]
|
||||
type=plugin
|
||||
|
@ -22,10 +22,10 @@ depends=elf/common.h
|
|||
depends=elf/common.h
|
||||
|
||||
[elf/elf32.c]
|
||||
depends=elf/common.h,elf/format.h,elf/format.c
|
||||
depends=elf/common.h,elf/elf.h,elf/elf.c
|
||||
|
||||
[elf/elf64.c]
|
||||
depends=elf/common.h,elf/format.h,elf/format.c
|
||||
depends=elf/common.h,elf/elf.h,elf/elf.c
|
||||
|
||||
[flat]
|
||||
type=plugin
|
||||
|
|
Loading…
Reference in New Issue
Block a user