[7.2.x-checkin] Re: [patch] Fix regression on prelinked executables

Jan Kratochvil
2010-10-05T20:56:24Z

On Thu, 29 Jul 2010 18:36:48 +0200, Joel Brobecker wrote:
> I'm not sure about putting it on the 7.2 branch, however. Given that
> this can directly affect Darwin, I'd rather give this patch an observation
> period and potentially put it in 7.2.1.

On Fri, 30 Jul 2010 00:14:23 +0200, Tom Tromey wrote:
> >>>>> "Joel" == Joel Brobecker <brobecker@adacore.com> writes:
> Joel> Regarding the patch - if a second GM thinks it's safe for 7.2, then
> Joel> that's also good enough for me.
>
> I didn't look that closely :)

http://sourceware.org/ml/gdb-cvs/2010-10/msg00028.html

Branch: gdb_7_2-branch

gdb/
* symfile.c (addr_section_name): New function.
(addrs_section_compar): Use it.
(addr_info_make_relative): Use it. Move variable sect_name into a more
inner block. Make ".dynbss" and ".sdynbss" checks more strict.

gdb/testsuite/
* gdb.base/prelink-lib.c (copyreloc): New initialized variable.
* gdb.base/prelink.c (copyreloc, bssvar, bssvarp): New variables.
(main): Use copyreloc.
* gdb.base/prelink.exp (split debug of executable)
(.dynbss vs. .bss address shift): New tests.

Checked-in for 7.2.1, if any.

Thanks,
Jan