From d65736924b695dee1dc40467548773ff144b0f70 Mon Sep 17 00:00:00 2001 From: Camm Maguire Date: Sun, 13 Nov 2022 12:55:14 +0000 Subject: [PATCH] Bug-Debian: https://bugs.debian.org/952334 TODO: Put a short summary on the line above and replace this paragraph with a longer explanation of this change. Complete the meta-information with other relevant fields (see below for details). To make it easier, the information below has been extracted from the changelog. Adjust it or drop it. gcl (2.6.12-95) unstable; urgency=high * Version_2_6_13pre90 * build under GCL_MEM_MULTIPLE=0.1 * Bug fix: "FTBFS: Unrecoverable error: Segmentation violation..", thanks to Lucas Nussbaum (Closes: #952334). Gbp-Pq: Name Version_2_6_13pre92 --- h/elf32_armhf_reloc_special.h | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/h/elf32_armhf_reloc_special.h b/h/elf32_armhf_reloc_special.h index 56d35a1..77e8852 100644 --- a/h/elf32_armhf_reloc_special.h +++ b/h/elf32_armhf_reloc_special.h @@ -6,13 +6,15 @@ static ul tz=sizeof(tramp)/sizeof(ul); static ul * next_plt_entry(ul *p,ul *pe) { - ul l0=0xe5bef000,/*ldr pc,[ip,#]*/ - l1=0xe5bcf000;/*ldr pc,[lr,#]*/ - - for (;p */ /*optional*/ + /* above when stripped becomes undefined instruction*/ + /* e28fc601 add ip, pc, #1048576 ; 0x100000 */ + /* e28ccab0 add ip, ip, #176, 20 ; 0xb0000 */ + /* e5bcf914 ldr pc, [ip, #2324]! ; 0x914 */ + + for (p=p+2;p>20)!=0xe28;p++); + return p; } -- 2.30.2