Fix a bug that caused the relocs for linker set members in shared
libraries to come out as 1-byte relocations instead of 4-byte relocations. Submitted by: Doug Rabson <dfr@nlsystems.com>
This commit is contained in:
parent
3f05ff3340
commit
aafb797228
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=25300
@ -27,7 +27,7 @@
|
|||||||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||||||
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
*
|
*
|
||||||
* $Id$
|
* $Id: md.h,v 1.16 1997/02/22 15:46:34 peter Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef __MD_H__
|
#ifndef __MD_H__
|
||||||
@ -95,6 +95,8 @@
|
|||||||
|
|
||||||
#define md_get_rt_segment_addend(r,a) md_get_addend(r,a)
|
#define md_get_rt_segment_addend(r,a) md_get_addend(r,a)
|
||||||
|
|
||||||
|
#define RELOC_INIT_SEGMENT_RELOC(r) ((r)->r_length = 2)
|
||||||
|
|
||||||
/* Width of a Global Offset Table entry */
|
/* Width of a Global Offset Table entry */
|
||||||
#define GOT_ENTRY_SIZE 4
|
#define GOT_ENTRY_SIZE 4
|
||||||
typedef long got_t;
|
typedef long got_t;
|
||||||
|
@ -27,7 +27,7 @@
|
|||||||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||||||
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
*
|
*
|
||||||
* $Id$
|
* $Id: md.h,v 1.16 1997/02/22 15:46:34 peter Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef __MD_H__
|
#ifndef __MD_H__
|
||||||
@ -95,6 +95,8 @@
|
|||||||
|
|
||||||
#define md_get_rt_segment_addend(r,a) md_get_addend(r,a)
|
#define md_get_rt_segment_addend(r,a) md_get_addend(r,a)
|
||||||
|
|
||||||
|
#define RELOC_INIT_SEGMENT_RELOC(r) ((r)->r_length = 2)
|
||||||
|
|
||||||
/* Width of a Global Offset Table entry */
|
/* Width of a Global Offset Table entry */
|
||||||
#define GOT_ENTRY_SIZE 4
|
#define GOT_ENTRY_SIZE 4
|
||||||
typedef long got_t;
|
typedef long got_t;
|
||||||
|
Loading…
Reference in New Issue
Block a user