+++ This bug was initially created as a clone of Bug #614659 +++
there is a regression since gdb-7.0 for a combination of:
* main executable
* using separate debug info
* using copy relocations
Hopefully it may not affect customer applications but it makes debugging of the RHEL components difficult:
int bssvar, *bssvarp = &bssvar;
(gdb) p &bssvar
$1 = (int *) 0x600b54
(gdb) p bssvarp
$2 = (int *) 0x600b50
Version-Release number of selected component (if applicable):
PASS <= FSF GDB 7.0
FAIL >= FSF GDB 7.1
Steps to Reproduce:
Updated gdb.base/prelink.exp testcase.
Fix + testcase:
* Mon Sep 6 2010 Jan Kratochvil <firstname.lastname@example.org> - 7.0.1-27.el5
- Fix prelinked executables with sepdebug and copy relocations (BZ 614806).
- Fix incorrect relocation of sections with duplicate name (BZ 575737).
- Fix false warning: section .gnu.liblist not found in ...
Technical note added. If any revisions are required, please edit the "Technical Notes" field
accordingly. All revisions will be proofread by the Engineering Content Services team.
GDB displayed invalid content of some variables. Separate debuginfo files installed for executables caused this behavior when the prelink program optimized the executable with copy relocations. With this update, GDB correctly displays the contents of all the variables.
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.