Skip to content

Commit

Permalink
6178 fix for 5234 reintroduced 3921
Browse files Browse the repository at this point in the history
Reviewed by: Josef 'Jeff' Sipek <[email protected]>
Approved by: Richard Lowe <[email protected]>
  • Loading branch information
bcantrill authored and rmustacc committed Sep 3, 2015
1 parent 22146ea commit 2ed9632
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions usr/src/lib/libproc/common/Pcore.c
Original file line number Diff line number Diff line change
Expand Up @@ -2664,11 +2664,15 @@ Pfgrab_core(int core_fd, const char *aout_path, int *perr)
P->map_exec = core_name_mapping(P, addr, "a.out");

/*
* If we're a statically linked executable, then just locate the
* executable's text and data and name them after the executable.
* If we're a statically linked executable (or we're on x86 and looking
* at a Linux core dump), then just locate the executable's text and
* data and name them after the executable.
*/
if (base_addr == (uintptr_t)-1L ||
core_info->core_osabi == ELFOSABI_NONE) {
#ifndef __x86
if (base_addr == (uintptr_t)-1L) {
#else
if (base_addr == (uintptr_t)-1L || from_linux) {
#endif
dprintf("looking for text and data: %s\n", execname);
map_info_t *tmp, *dmp;
file_info_t *fp;
Expand Down

0 comments on commit 2ed9632

Please sign in to comment.