mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 01:07:52 +00:00
* mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Set
r_brk_offset. (mipsnbsd_lp64_fetch_link_map_offsets): Likewise. * solib-svr4.c (solib_svr4_r_brk): New. (open_symbol_file_object, svr4_current_sos): Always check the debug base. (svr4_fetch_objfile_link_map): Do not set debug_base. (enable_break): Use r_brk if it is set. (svr4_ilp32_fetch_link_map_offsets): Set r_brk_offset. (svr4_lp64_fetch_link_map_offsets): Likewise. * solib-svr4.h (struct link_map_offsets): Add r_brk_offset.
This commit is contained in:
@@ -341,6 +341,7 @@ mipsnbsd_ilp32_fetch_link_map_offsets (void)
|
||||
lmo.r_version_offset = 0;
|
||||
lmo.r_version_size = 4;
|
||||
lmo.r_map_offset = 4;
|
||||
lmo.r_brk_offset = 8;
|
||||
lmo.r_ldsomap_offset = -1;
|
||||
|
||||
/* Everything we need is in the first 24 bytes. */
|
||||
@@ -368,6 +369,7 @@ mipsnbsd_lp64_fetch_link_map_offsets (void)
|
||||
lmo.r_version_offset = 0;
|
||||
lmo.r_version_size = 4;
|
||||
lmo.r_map_offset = 8;
|
||||
lmo.r_brk_offset = 16;
|
||||
lmo.r_ldsomap_offset = -1;
|
||||
|
||||
/* Everything we need is in the first 40 bytes. */
|
||||
|
||||
Reference in New Issue
Block a user