This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFC][patch] Work around for gold/10400 bug.
- From: Andreas Schwab <schwab at redhat dot com>
- To: ppluzhnikov at google dot com (Paul Pluzhnikov)
- Cc: gdb-patches at sourceware dot org
- Date: Wed, 22 Jul 2009 10:55:27 +0200
- Subject: Re: [RFC][patch] Work around for gold/10400 bug.
- References: <20090722001233.C049876BC0@localhost>
ppluzhnikov@google.com (Paul Pluzhnikov) writes:
> + if (aa->address_range != bb->address_range
> + && aa->eh_frame_p == 0 && bb->eh_frame_p == 0)
> + /* Linker bug, e.g. gold/10400.
> + Work around it by keeping stable sort order. */
> + return (char *) a - (char *) b;
This can overflow.
Andreas.
--
Andreas Schwab, schwab@redhat.com
GPG Key fingerprint = D4E8 DBE3 3813 BB5D FA84 5EC7 45C6 250E 6F00 984E
"And now for something completely different."