fmt2
#define FMT2SIZE sizeof(struct fmt2)
const char *fmt2;
f2 = test_fmts[i].fmt2;
const char *fmt1 = NULL, *fmt2 = NULL;
if (fmt2)
fmt2 = optarg;
if (fmt1 || fmt2)
if (elf_ldd(fd, *argv, path, fmt1, fmt2) == -1) {
if (elf32_ldd(fd, *argv, path, fmt1, fmt2) == -1) {
if (elf32_ldd_compat(fd, *argv, path, fmt1, fmt2) == -1) {
print_needed(_rtld_objmain, fmt1, fmt2);
const char *fmt2)
if (fmt2 == NULL)
fmt2 = "\t%o => %p\n";
fmt = libname == libnamebuf ? fmt1 : fmt2;
print_needed(Obj_Entry *obj, const char *fmt1, const char *fmt2)
fmtprint(libname, needed->obj, fmt1, fmt2);
print_needed(needed->obj, fmt1, fmt2);
fmtprint(libname, needed->obj, fmt1, fmt2);
ELFNAME(ldd)(int fd, char *prog, char *path, const char *fmt1, const char *fmt2)
fmt2(np->n_name, fo);
char *fmt2 = NULL; /* replacement fmt (if not NULL) */
if (fmt2 == NULL) {
if ((fmt2 = calloc(flen, 1)) == NULL) {
f2p = fmt2;
fmt = fmt2;
if (fmt2 != NULL) {
free(fmt2);