This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
win32-nat.c currently only passes the loaded address of the .text section into symbol_file_add, which means that any symbols from .data or .bss don't get fixed up properly. This patch fixes the problem by calculating the load addresses of all sections known to bfd. I recently posted a test case which demonstrates the relocation problem in the "coffread.c extension" thread (message ID avejk1$lv6$1@main.gmane.org, posted 7 Jan 2003 13:10:49 -0000). This showed that gdb 5.2.1 didn't handle any DLL symbol relocations. The current CVS version only handles the .text section. With this patch, it handles all sections correctly. Raoul Gough.
Attachment:
ChangeLog_entry.txt
Description: Text document
Attachment:
win32-nat.c.diff
Description: Binary data
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |