Bug 20292 - Simplify and test _dl_addr_inside_object
commitd61ef7352b0026d9eeaf457dbfbb2e3fd8401e92
authorCarlos O'Donell <carlos@redhat.com>
Fri, 30 Sep 2016 01:54:31 +0000 (29 21:54 -0400)
committerCarlos O'Donell <carlos@redhat.com>
Fri, 30 Sep 2016 05:36:56 +0000 (30 01:36 -0400)
tree798532132a35db0935de8cff3f10e8642e3457bb
parent29cb9293326a27576965a40d50a898ee660dff81
Bug 20292 - Simplify and test _dl_addr_inside_object

The function _dl_addr_inside_object is simplified by removing
the conditional 'reladdr - l->l_phdr[n].p_vaddr >= 0' which is
always true. The function is refactored into it's own object file
and a unit test added to verify the correct behaviour of the
function.
ChangeLog
elf/Makefile
elf/dl-addr-obj.c [new file with mode: 0644]
elf/dl-addr.c
elf/dl-open.c
elf/tst-_dl_addr_inside_object.c [new file with mode: 0644]