300-120_mips_xgot_multigot_workaround.patch

来自「這是一個實時嵌入式作業系統 實作了MCS51 ARM等MCU」· PATCH 代码 · 共 40 行

PATCH
40
字号
#! /bin/sh -e## 120_mips_xgot_multigot_workaround.dpatch#### DP: Description: Make multigot/xgot handling mutually exclusive.## DP: Author: Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>## DP: Upstream status: Not submitted## DP: Date: 2004-09-17if [ $# -lt 1 ]; then    echo "`basename $0`: script expects -patch|-unpatch as argument" >&2    exit 1fi[ -f debian/patches/00patch-opts ] && . debian/patches/00patch-optspatch_opts="${patch_opts:--f --no-backup-if-mismatch} ${2:+-d $2}"case "$1" in    -patch) patch -p1 ${patch_opts} < $0;;    -unpatch) patch -R -p1 ${patch_opts} < $0;;    *)        echo "`basename $0`: script expects -patch|-unpatch as argument" >&2        exit 1;;esacexit 0@DPATCH@diff -urNad /home/james/debian/packages/binutils/binutils-2.15/bfd/elfxx-mips.c binutils-2.15/bfd/elfxx-mips.c--- /home/james/debian/packages/binutils/binutils-2.15/bfd/elfxx-mips.c	2004-09-23 22:41:37.156466673 +0100+++ binutils-2.15/bfd/elfxx-mips.c	2004-09-23 22:42:15.998362861 +0100@@ -5883,6 +5883,8 @@   s->size += i * MIPS_ELF_GOT_SIZE (output_bfd);    if (s->size > MIPS_ELF_GOT_MAX_SIZE (output_bfd)+      && g->global_gotno <= (MIPS_ELF_GOT_MAX_SIZE (output_bfd)+                            / MIPS_ELF_GOT_SIZE (output_bfd))       && ! mips_elf_multi_got (output_bfd, info, g, s, local_gotno))     return FALSE; 

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?