55 Commits

Author SHA1 Message Date
Funda Wang
218427f362 fix CVE-2024-57360, CVE-2025-0840 2025-01-30 15:15:16 +08:00
wangding16
1a9a3fe649 Backport: Fix gold linker relocation offset
(cherry picked from commit bfd4551d9fc304ec47580ce7b419ebc73520f265)
2024-09-30 09:19:27 +08:00
h30032433
416b50b637 add binutils-help to keep consistent with the old version 2024-09-19 14:16:09 +08:00
h30032433
d5dd8f9f9b delete binutils-gold package and ld.gold move to binutils package
There is no need to create a binutils-gold package for ld.gold. Consider keeping it consistent with the old version and move it back to the binutils package.
2024-09-02 10:20:17 +08:00
huyubiao
a3d3e5400b delete jansson 2024-08-05 17:04:40 +08:00
h30032433
014a225415 fix ld-new compilation failure on 32-bit systems
(cherry picked from commit 3de6d3296fe72f73dc7d9dab6d9b56d65e8751f7)
2024-06-26 16:50:25 +08:00
ticat_fp
9f0e33046b SPEC: add build-require 'bison' for LoongArch
Signed-off-by: ticat_fp <fanpeng@loongson.cn>
2024-05-17 08:11:09 +00:00
邹鹏
2d13f70c94 add ppc64le support to fix error about gold
(cherry picked from commit 7a11df05671a57df8eda7e49b361e3974a8c721e)
2024-03-21 19:11:00 +08:00
Wenlong Zhang
0048b6003f Modify inconsistent behavior of ld with --unresolved-symbols=ignore-all
(cherry picked from commit 0c809caf6ff91567df909c3b6bbfbd6f3f418eb1)
2024-03-08 14:18:13 +08:00
ticat_fp
09f4076aeb LoongArch: update from binutils upstream
Signed-off-by: ticat_fp <fanpeng@loongson.cn>
2024-03-01 10:22:56 +08:00
eastb233
34cb11a359 [Update] Update binutils 2.41 2024-02-27 10:32:09 +08:00
chenyuanfeng
9c38cafed9 [PPC] gas supporte c2000 processor 2024-01-08 03:26:38 -05:00
eastb233
2c936e5113 [TestCase] Enable running testcase 2023-11-21 15:22:29 +08:00
frey1186
b18e520894 Generate libbfd.so and libopcodes.so for ppc64le 2023-10-11 15:20:52 +08:00
eastb233
0a7ad38dbb [SPEC] Rename ctf-spec.info in binutils package
Because gdb-help package also provides it.
2023-08-29 17:02:21 +08:00
eastb233
884123a069 [X86] Change -fpic to -fPIC in PICFLAG 2023-08-08 20:15:22 +08:00
eastb233
254b28051a [Update] Init Binutils 2.40 repo 2023-08-08 11:12:28 +08:00
dingguangya
dfabcd8007 Fix gold linker relocation offset and linker adrp signed shift 2023-04-20 11:20:53 +08:00
h30032433
99db5cbd60 Prevents the use of null pointers and sets the pointer to null after being used 2022-10-24 15:38:41 +08:00
konglidong
f386f42436 fix the changelog exception macro 2022-10-18 11:48:40 +08:00
Chenxi Mao
c2c2e8be79 Fix AArch64 PE section address overlap issue
After 31c209ebf59 delivered, MokManager.efi has below error during shim invoked:
[Bds]Booting suse-secureboot
Loading driver at 0x0002FDBF000 EntryPoint=0x0002FDDD000
2 sections contain entry point
Failed to load image: Unsupported
Failed to start MokManager: Unsupported

The root cause is the AArch64 PE section address overlapped.
Sections
================================================================================
Name      RWX  VirtSize   VirtAddr   RawAddr   RawSize   Entropy  md5
/4        R--  0x16c34    0x5000     0x400     0x17c00     4.84 bdfa950df3517b30bc1ba386b19b322b
.text     R-X  0x5c88c    0x1c000    0x18000   0x5d000     6.32 b52855acbce7b2ea150c30bc4186898d

Reason:
The 0x5000 + 0x17c00 is lager than 0x1c000 which is an unsupported/illegal format.

To fix this issue, there are 3 patches need to be applied from upstream:
d91c67e8730 Re: Add support for AArch64 EFI (efi-*-aarch64)
32384aa396e Re: AArch64: Add support for AArch64 EFI (efi-*-aarch64)
5bb067dba don't over-align file positions of PE executable sections

After above changes, the PE section address are correct.

Sections
================================================================================
Name      RWX  VirtSize   VirtAddr   RawAddr   RawSize   Entropy  md5
/4        R--  0x16c34    0x5000     0x400     0x16e00     4.97 4facea77c0e1db16428ec65d790b13e3
.text     R-X  0x5c88c    0x1c000    0x17200   0x5ca00     6.34 107cbdfa866047ff7a0463c71bbd2745

References: bsn#351
Change-Id: I2e4563b129e30ff55f2146526fc37776dcaf40dc
Signed-off-by: Chenxi Mao <chenxi.mao@suse.com>
2022-10-08 09:55:16 +08:00
Qiang Wei
bb872917a5 Fix manpage empty issue.
Signed-off-by: Qiang Wei <qiang.wei@suse.com>
2022-09-15 20:42:31 +08:00
yinyongkang
f01aa77fc5 fix CVE-2022-38126 2022-09-08 17:19:35 +08:00
dingguangya
ccc9d8c777 Enable Intel AVX512_FP16 instructions
(cherry picked from commit dc957bc9fadac974c5930b19a52129ff17dd2fae)
2022-09-05 11:14:32 +08:00
maminjie
70f363a2ce Fix preserve-dates: cannot set time
Reference: https://sourceware.org/git/?p=binutils-gdb.git;a=patch;h=6b02746a0e29b1007efd4feb137e2da3e681fc6

Signed-off-by: maminjie <maminjie8@163.com>
2022-07-15 05:03:03 +08:00
Chenxi Mao
038d1fbfdf Add support for the EFI format to the AArch64 target
shim-15.6 commits d6eb9c6c depends on
"objcopy --target efi-app-aarch64" command during aarch64 build.

Backport upstream patch to support it.

Signed-off-by: Chenxi Mao <chenxi.mao@suse.com>
2022-06-29 07:38:39 +08:00
liyancheng
3cf7cfba6f [Sync] Synchronize commits from openEuler-22.03-LTS
commit ac65d1c3346cb23ce4898965a4e3d3d2bba4378a
  fix (obs) project build fail

commit 508b3a2dc0b2da6d2e7e95a341647f9098dd8db6
  add binutils-extra

commit be2f62e1a4996596ab2daa6950a8d3e3228b895e
  Fix the "malformed archive" issue when building nodejs

commit e77873c5c2598a013374081ed44afb5f0bf78e69
  Fix CVE-2021-42574
2022-04-15 10:31:01 +08:00
panxiaohe
2004a44162 update to 2.37 and fix CVE-2021-42574 2022-01-20 11:45:20 +08:00
yang_zhuang_zhuang
8cffa7961c Fix CVE-2021-45078 2021-12-24 11:49:02 +08:00
wangchen2020
6a671f9515 Fix demangle style usage info 2021-12-16 19:35:31 +08:00
panxiaohe
71ba4bd474 fix issue about delete symlink when using the strip command 2021-09-14 10:23:18 +08:00
yixiangzhike
bed53c7959 Update to 2.36.1 2021-07-05 17:16:49 +08:00
wangchen2020
5b672db2b7 fix CVE-2021-3549 2021-06-19 11:19:46 +08:00
lirui
d8e29d6574 fix CVE-2021-3487 2021-04-23 11:58:08 +08:00
lirui
2ad54fd664 fix CVE-2021-20197 2021-04-16 15:25:09 +08:00
panxiaohe
b5c83c9eba fix CVE-2020-0551 2021-03-23 10:56:53 +08:00
Liquor
88da516ec4 move the test to %check phase 2021-03-22 15:17:36 +08:00
zou_lin77
d50ccec86d fix CVE-2020-16592 2021-01-09 15:17:09 +08:00
liqingqing_1229
8c7b7ac443 add fully support for riscv64. 2020-11-04 14:57:24 +08:00
liqingqing_1229
aeaca025ac riscv64 do not support gold linker, disable it. 2020-11-03 17:36:00 +08:00
liqingqing_1229
3a8da93f58 fix changelog date 2020-10-31 14:51:38 +08:00
zou_lin77
6f6dced405 Fix a potential use-of-an-uninitialised-value in the print_insn_ns32k of fuzz_disassemble 2020-09-18 18:38:12 +08:00
zou_lin77
e75efd0f4e Fix a memory leak in the testcase fuzz_readelf and use-of-uninitialized-value in print_insn_mwtag and use-of-ninitialized-value in _bfd_xcoff_slurp_armap 2020-09-11 21:25:04 +08:00
yixiangzhike
ad05d782e2 Fix static library file conflicts when install both binutils and binutils-devel 2020-08-05 17:19:21 +08:00
yixiangzhike
a857b64843 update to 2.34 2020-07-24 10:50:26 +08:00
linwei9
8c2a223bdd fix use-of-uninitialized-value in print_insn_nds32 2020-07-14 19:56:05 +08:00
wangchen2020
3efc870bc7 fix memory leak in bfd_check_format() 2020-05-15 14:17:36 +08:00
liquor
31c94b3b22 Use disassemble_info.private_data in place of insn_sets 2020-04-02 11:20:42 +08:00
syyhao
b1a781432c update binutils.spec. 2020-01-22 23:28:46 +08:00
openeuler-basic
85758061ad backport patch to fix memory leak and overflow 2020-01-20 22:30:55 +08:00