* Add cle_info argument to cle_write_reloc.
This commit is contained in:
parent
c22b261b12
commit
0f3f14f159
3 changed files with 11 additions and 7 deletions
|
@ -26,7 +26,7 @@
|
|||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)$Id: cle.c,v 1.6 2007/04/26 13:37:28 bg- Exp $
|
||||
* @(#)$Id: cle.c,v 1.7 2007/06/04 17:48:19 bg- Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
|
@ -260,7 +260,7 @@ cle_relocate(struct cle_info *info,
|
|||
|
||||
addr += rela.r_addend;
|
||||
|
||||
ret = cle_write_reloc(segmem + rela.r_offset, &rela, addr);
|
||||
ret = cle_write_reloc(segmem + rela.r_offset, &rela, addr, info);
|
||||
if(ret != CLE_OK) {
|
||||
return ret;
|
||||
}
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)$Id: cle.h,v 1.6 2007/05/15 10:28:03 bg- Exp $
|
||||
* @(#)$Id: cle.h,v 1.7 2007/06/04 17:47:56 bg- Exp $
|
||||
*/
|
||||
|
||||
#ifndef CLE_H
|
||||
|
@ -92,7 +92,10 @@ cle_lookup(struct cle_info *info,
|
|||
|
||||
struct elf32_rela; /* Struct forward decl. */
|
||||
|
||||
int cle_write_reloc(unsigned char *, const struct elf32_rela *, cle_addr);
|
||||
int cle_write_reloc(void *,
|
||||
const struct elf32_rela *,
|
||||
cle_addr,
|
||||
const struct cle_info *);
|
||||
|
||||
/*
|
||||
* Error codes that apply in general to linking and loading.
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)$Id: cle_msp430.c,v 1.1 2007/04/26 13:38:00 bg- Exp $
|
||||
* @(#)$Id: cle_msp430.c,v 1.2 2007/06/04 17:48:32 bg- Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
|
@ -54,9 +54,10 @@
|
|||
* specific!
|
||||
*/
|
||||
int
|
||||
cle_write_reloc(unsigned char *pos,
|
||||
cle_write_reloc(void *pos,
|
||||
const struct elf32_rela *rela,
|
||||
cle_addr addr)
|
||||
cle_addr addr,
|
||||
const struct cle_info *info)
|
||||
{
|
||||
memcpy(pos, &addr, 2); /* Write reloc */
|
||||
return CLE_OK;
|
||||
|
|
Loading…
Reference in a new issue