rtld.c (8af2c5b9) | rtld.c (d29b2c44) |
---|---|
1/* 2 * CDDL HEADER START 3 * 4 * The contents of this file are subject to the terms of the 5 * Common Development and Distribution License (the "License"). 6 * You may not use this file except in compliance with the License. 7 * 8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE --- 1448 unchanged lines hidden (view full) --- 1457 mdb_printf(MSG_ORIG(MSG_EHDR_LINE4), 1458 conv_ehdr_type(ehdr.e_type, 0, &inv_buf1)); 1459 1460 /* 1461 * Line up the flags differently depending on whether we 1462 * received a numeric (e.g. "0x200") or text representation 1463 * (e.g. "[ EF_SPARC_SUN_US1 ]"). 1464 */ | 1/* 2 * CDDL HEADER START 3 * 4 * The contents of this file are subject to the terms of the 5 * Common Development and Distribution License (the "License"). 6 * You may not use this file except in compliance with the License. 7 * 8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE --- 1448 unchanged lines hidden (view full) --- 1457 mdb_printf(MSG_ORIG(MSG_EHDR_LINE4), 1458 conv_ehdr_type(ehdr.e_type, 0, &inv_buf1)); 1459 1460 /* 1461 * Line up the flags differently depending on whether we 1462 * received a numeric (e.g. "0x200") or text representation 1463 * (e.g. "[ EF_SPARC_SUN_US1 ]"). 1464 */ |
1465 flgs = conv_ehdr_flags(ehdr.e_machine, ehdr.e_flags, &ehdr_flags_buf); | 1465 flgs = conv_ehdr_flags(ehdr.e_machine, ehdr.e_flags, 1466 0, &ehdr_flags_buf); |
1466 if (flgs[0] == '[') 1467 mdb_printf(MSG_ORIG(MSG_EHDR_LINE5), flgs); 1468 else 1469 mdb_printf(MSG_ORIG(MSG_EHDR_LINE6), flgs); 1470 1471 mdb_printf(MSG_ORIG(MSG_EHDR_LINE7), ehdr.e_entry, ehdr.e_ehsize, 1472 ehdr.e_shstrndx); 1473 mdb_printf(MSG_ORIG(MSG_EHDR_LINE8), ehdr.e_shoff, ehdr.e_shentsize, --- 26 unchanged lines hidden (view full) --- 1500 if (mdb_vread(&phdr, sizeof (phdr), addr) == -1) { 1501 mdb_warn(MSG_ORIG(MSG_ERR_READ), MSG_ORIG(MSG_EPHDR_STR), 1502 addr); 1503 return (DCMD_ERR); 1504 } 1505 1506 mdb_printf(MSG_ORIG(MSG_EPHDR_TITLE), addr); 1507 mdb_printf(MSG_ORIG(MSG_EPHDR_LINE1), phdr.p_vaddr, | 1467 if (flgs[0] == '[') 1468 mdb_printf(MSG_ORIG(MSG_EHDR_LINE5), flgs); 1469 else 1470 mdb_printf(MSG_ORIG(MSG_EHDR_LINE6), flgs); 1471 1472 mdb_printf(MSG_ORIG(MSG_EHDR_LINE7), ehdr.e_entry, ehdr.e_ehsize, 1473 ehdr.e_shstrndx); 1474 mdb_printf(MSG_ORIG(MSG_EHDR_LINE8), ehdr.e_shoff, ehdr.e_shentsize, --- 26 unchanged lines hidden (view full) --- 1501 if (mdb_vread(&phdr, sizeof (phdr), addr) == -1) { 1502 mdb_warn(MSG_ORIG(MSG_ERR_READ), MSG_ORIG(MSG_EPHDR_STR), 1503 addr); 1504 return (DCMD_ERR); 1505 } 1506 1507 mdb_printf(MSG_ORIG(MSG_EPHDR_TITLE), addr); 1508 mdb_printf(MSG_ORIG(MSG_EPHDR_LINE1), phdr.p_vaddr, |
1508 conv_phdr_flags(phdr.p_flags, &phdr_flags_buf)); | 1509 conv_phdr_flags(phdr.p_flags, 0, &phdr_flags_buf)); |
1509 mdb_printf(MSG_ORIG(MSG_EPHDR_LINE2), phdr.p_paddr, 1510 conv_phdr_type(M_MACH, phdr.p_type, 0, &inv_buf)); 1511 mdb_printf(MSG_ORIG(MSG_EPHDR_LINE3), phdr.p_filesz, phdr.p_memsz); 1512 mdb_printf(MSG_ORIG(MSG_EPHDR_LINE4), phdr.p_offset, phdr.p_align); 1513 1514 mdb_set_dot(addr + sizeof (Phdr)); 1515 1516 return (DCMD_OK); --- 69 unchanged lines hidden --- | 1510 mdb_printf(MSG_ORIG(MSG_EPHDR_LINE2), phdr.p_paddr, 1511 conv_phdr_type(M_MACH, phdr.p_type, 0, &inv_buf)); 1512 mdb_printf(MSG_ORIG(MSG_EPHDR_LINE3), phdr.p_filesz, phdr.p_memsz); 1513 mdb_printf(MSG_ORIG(MSG_EPHDR_LINE4), phdr.p_offset, phdr.p_align); 1514 1515 mdb_set_dot(addr + sizeof (Phdr)); 1516 1517 return (DCMD_OK); --- 69 unchanged lines hidden --- |