elf_object.cc (3917:a6cc1842f529) elf_object.cc (3925:08252e3cb1c0)
1/*
2 * Copyright (c) 2003-2005 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

--- 356 unchanged lines hidden (view full) ---

365 }
366
367 // Get the first section
368 section = elf_getscn(elf, sec_idx);
369
370 // While there are no more sections
371 while (section != NULL) {
372 gelf_getshdr(section, &shdr);
1/*
2 * Copyright (c) 2003-2005 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

--- 356 unchanged lines hidden (view full) ---

365 }
366
367 // Get the first section
368 section = elf_getscn(elf, sec_idx);
369
370 // While there are no more sections
371 while (section != NULL) {
372 gelf_getshdr(section, &shdr);
373 if (!strcmp(".dynamic", elf_strptr(elf, ehdr.e_shstrndx, shdr.sh_name)))
373 if (!strcmp(".interp", elf_strptr(elf, ehdr.e_shstrndx, shdr.sh_name)))
374 return true;
375 section = elf_getscn(elf, ++sec_idx);
376 } // while sections
377 return false;
378}
379
380
374 return true;
375 section = elf_getscn(elf, ++sec_idx);
376 } // while sections
377 return false;
378}
379
380