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/mips-tdep.c | |
parent | 1ee8702db9cb2a329c9df0938667e2415b0c9e46 (diff) | |
download | gdb-9675da25357c7a3f472731ddc6eb3becc65b469a.zip gdb-9675da25357c7a3f472731ddc6eb3becc65b469a.tar.gz gdb-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/mips-tdep.c')
-rw-r--r-- | gdb/mips-tdep.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gdb/mips-tdep.c b/gdb/mips-tdep.c index 52799b9..b86bf61 100644 --- a/gdb/mips-tdep.c +++ b/gdb/mips-tdep.c @@ -436,12 +436,14 @@ mips_elf_make_msymbol_special (asymbol * sym, struct minimal_symbol *msym) if (ELF_ST_IS_MICROMIPS (st_other)) { SET_MSYMBOL_TARGET_FLAG_MICROMIPS (msym); - msym->set_value_address (msym->value_raw_address () | 1); + CORE_ADDR fixed = CORE_ADDR (msym->value_raw_address ()) | 1; + msym->set_unrelocated_address (unrelocated_addr (fixed)); } else if (ELF_ST_IS_MIPS16 (st_other)) { SET_MSYMBOL_TARGET_FLAG_MIPS16 (msym); - msym->set_value_address (msym->value_raw_address () | 1); + CORE_ADDR fixed = CORE_ADDR (msym->value_raw_address ()) | 1; + msym->set_unrelocated_address (unrelocated_addr (fixed)); } } |