This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH 07/11] ELFv2 ABI: base support
- From: "Ulrich Weigand" <uweigand at de dot ibm dot com>
- To: brobecker at adacore dot com (Joel Brobecker)
- Cc: gdb-patches at sourceware dot org
- Date: Wed, 29 Jan 2014 19:07:37 +0100 (CET)
- Subject: Re: [PATCH 07/11] ELFv2 ABI: base support
- Authentication-results: sourceware.org; auth=none
Joel Brobecker wrote:
> > + /* Default to ELFv2 ABI on 64-bit little-endian, and ELFv1 otherwise. */
> > + if (elf_abi == POWERPC_ELF_AUTO)
>
> I thik it would be useful to explain why. IIUC, that's because we want
> to preserve the legacy behavior where we have been using ELF_V1, while
> we know that ppc64le has been V2 from the start.
I've now added this comment block:
+ /* At this point, the only supported ELF-based 64-bit little-endian
+ operating system is GNU/Linux, and this uses the ELFv2 ABI by
+ default. All other supported ELF-based operating systems use the
+ ELFv1 ABI by default. Therefore, if the ABI marker is missing,
+ e.g. because we run a legacy binary, or have attached to a process
+ and have not found any associated binary file, set the default
+ according to this heuristic. */
Bye,
Ulrich
--
Dr. Ulrich Weigand
GNU/Linux compilers and toolchain
Ulrich.Weigand@de.ibm.com