diff options
author | Tom Tromey <tom@tromey.com> | 2023-03-19 10:24:27 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2023-03-28 15:12:44 -0600 |
commit | 9675da25357c7a3f472731ddc6eb3becc65b469a (patch) | |
tree | 54d600ccb876d7db6056c0aa97b7579878027f18 /gdb/machoread.c | |
parent | 1ee8702db9cb2a329c9df0938667e2415b0c9e46 (diff) | |
download | binutils-9675da25357c7a3f472731ddc6eb3becc65b469a.zip binutils-9675da25357c7a3f472731ddc6eb3becc65b469a.tar.gz binutils-9675da25357c7a3f472731ddc6eb3becc65b469a.tar.bz2 |
Use unrelocated_addr in minimal symbols
This changes minimal symbols to use unrelocated_addr. I believe this
detected a latent bug in add_pe_forwarded_sym.
Diffstat (limited to 'gdb/machoread.c')
-rw-r--r-- | gdb/machoread.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/machoread.c b/gdb/machoread.c index e8cae81..9735de8 100644 --- a/gdb/machoread.c +++ b/gdb/machoread.c @@ -98,11 +98,11 @@ macho_symtab_add_minsym (minimal_symbol_reader &reader, if (sym->flags & (BSF_GLOBAL | BSF_LOCAL | BSF_WEAK)) { - CORE_ADDR symaddr; + unrelocated_addr symaddr; enum minimal_symbol_type ms_type; /* Bfd symbols are section relative. */ - symaddr = sym->value + sym->section->vma; + symaddr = unrelocated_addr (sym->value + sym->section->vma); if (sym->section == bfd_abs_section_ptr) ms_type = mst_abs; |