mirror of
https://github.com/apache/nuttx.git
synced 2026-10-11 16:20:21 +00:00
ELF relocations. Some relocation types do not have a named symbol associated with them. The design did not account for that case
This commit is contained in:
parent
e00538967c
commit
c458e72b70
10 changed files with 160 additions and 24 deletions
|
|
@ -1,7 +1,7 @@
|
|||
/****************************************************************************
|
||||
* include/nuttx/binfmt/elf.h
|
||||
*
|
||||
* Copyright (C) 2012 Gregory Nutt. All rights reserved.
|
||||
* Copyright (C) 2012, 2014 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
|
|
@ -303,6 +303,10 @@ bool up_checkarch(FAR const Elf32_Ehdr *hdr);
|
|||
* Input Parameters:
|
||||
* rel - The relocation type
|
||||
* sym - The ELF symbol structure containing the fully resolved value.
|
||||
* There are a few relocation types for a few architectures that do
|
||||
* not require symbol information. For those, this value will be
|
||||
* NULL. Implementations of these functions must be able to handle
|
||||
* that case.
|
||||
* addr - The address that requires the relocation.
|
||||
*
|
||||
* Returned Value:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue