Exposing asm_set_function() and asm_set_section() for now
This commit is contained in:
parent
10a296fa96
commit
4030d1c97b
@ -1,5 +1,5 @@
|
||||
/* $Id$ */
|
||||
/* Copyright (c) 2011 Pierre Pronchery <khorben@defora.org> */
|
||||
/* Copyright (c) 2011-2012 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 General Public License as published by
|
||||
@ -47,6 +47,10 @@ int asm_set_arch(Asm * a, char const * arch);
|
||||
char const * asm_get_format(Asm * a);
|
||||
int asm_set_format(Asm * a, char const * format);
|
||||
|
||||
int asm_set_function(Asm * a, char const * name, off_t offset, ssize_t size);
|
||||
int asm_set_section(Asm * a, char const * name, off_t offset, ssize_t size,
|
||||
off_t base);
|
||||
|
||||
|
||||
/* useful */
|
||||
/* detection */
|
||||
|
@ -160,6 +160,14 @@ int asm_set_function(Asm * a, char const * name, off_t offset, ssize_t size)
|
||||
}
|
||||
|
||||
|
||||
/* asm_set_section */
|
||||
int asm_set_section(Asm * a, char const * name, off_t offset, ssize_t size,
|
||||
off_t base)
|
||||
{
|
||||
return asmcode_set_section(a->code, -1, name, offset, size, base);
|
||||
}
|
||||
|
||||
|
||||
/* useful */
|
||||
/* asm_assemble */
|
||||
int asm_assemble(Asm * a, AsmPrefs * prefs, char const * infile,
|
||||
|
Loading…
Reference in New Issue
Block a user