mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-27 17:40:49 +00:00
* mdebugread.c (parse_partial_symbols): Fix 64-bit
sign-extension problems in calculating psymtab addresses. * buildsym.c (end_symtab): Use macro to pop context.
This commit is contained in:
@@ -2567,7 +2567,7 @@ parse_partial_symbols (objfile, section_offsets)
|
||||
{
|
||||
if (sh.st == stProc || sh.st == stStaticProc)
|
||||
{
|
||||
long procaddr;
|
||||
CORE_ADDR procaddr;
|
||||
long isym;
|
||||
|
||||
sh.value += ANOFFSET (section_offsets, SECT_OFF_TEXT);
|
||||
@@ -2594,7 +2594,7 @@ parse_partial_symbols (objfile, section_offsets)
|
||||
&sh);
|
||||
if (sh.st == stEnd)
|
||||
{
|
||||
long high = procaddr + sh.value;
|
||||
CORE_ADDR high = procaddr + sh.value;
|
||||
|
||||
/* Kludge for Irix 5.2 zero fh->adr. */
|
||||
if (!relocatable
|
||||
@@ -2708,8 +2708,8 @@ parse_partial_symbols (objfile, section_offsets)
|
||||
|
||||
switch (sh.st)
|
||||
{
|
||||
long high;
|
||||
long procaddr;
|
||||
CORE_ADDR high;
|
||||
CORE_ADDR procaddr;
|
||||
int new_sdx;
|
||||
|
||||
case stStaticProc:
|
||||
|
||||
Reference in New Issue
Block a user