From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2098 invoked by alias); 17 Apr 2015 08:41:13 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 2086 invoked by uid 89); 17 Apr 2015 08:41:13 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.2 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-pa0-f48.google.com Received: from mail-pa0-f48.google.com (HELO mail-pa0-f48.google.com) (209.85.220.48) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Fri, 17 Apr 2015 08:41:11 +0000 Received: by pacyx8 with SMTP id yx8so118547739pac.1 for ; Fri, 17 Apr 2015 01:41:10 -0700 (PDT) X-Received: by 10.70.38.225 with SMTP id j1mr3652635pdk.14.1429260069954; Fri, 17 Apr 2015 01:41:09 -0700 (PDT) Received: from E107787-LIN (gcc1-power7.osuosl.org. [140.211.15.137]) by mx.google.com with ESMTPSA id rd7sm9373744pdb.64.2015.04.17.01.41.08 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 17 Apr 2015 01:41:09 -0700 (PDT) From: Yao Qi To: Kyle Huey Cc: gdb-patches@sourceware.org Subject: Re: [PATCH] Do arm_abi detection for ELFOSABI_GNU binaries References: Date: Fri, 17 Apr 2015 08:41:00 -0000 In-Reply-To: (Kyle Huey's message of "Fri, 27 Mar 2015 13:55:16 -0700") Message-ID: <86sibzrvtv.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes X-SW-Source: 2015-04/txt/msg00644.txt.bz2 Kyle Huey writes: Hi Kyle, > On ARM systems, gdb must determine which style of breakpoint to use > (see the comments at the beginning of gdb/arm-linux-tdep.c). In > arm_gdbarch_init we only attempt to extract the eabi version from the > ELF binary if it is a ELFOSABI_NONE binary. If the binary is > ELFOSABI_GNU instead, we end up defaulting to the old style OABI > syscall breakpoint instruction. On a Linux kernel built without > CONFIG_OABI_COMPAT, this triggers a SIGILL in ld when attempting to > execute any ELFOSABI_GNU program. (e.g. > https://github.com/raspberrypi/linux/issues/766) Thanks for submitting the patch... Looks GDB doesn't detect the correct abi in your case, but you can set arm abi explicitly via "set arm abi AAPCS= ". Hope this can unblock you. In the mean time, I'll think about your patch. --=20 Yao (=E9=BD=90=E5=B0=A7)