* 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:
Daniel Jacobowitz
2008-02-21 01:47:32 +00:00
parent a4e3cafb29
commit 7cd25cfc87
4 changed files with 93 additions and 14 deletions

View File

@@ -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. */