Do not warn of missing PT_GNU_RELRO segment when custom DSO filter used
authorKjetil Matheussen <k.s.matheussen@notam02.no>
Fri, 15 Jul 2016 12:00:26 +0000 (14:00 +0200)
committerIvan Maidanski <ivmai@mail.ru>
Fri, 22 Jul 2016 17:27:02 +0000 (20:27 +0300)
commit1dee912de210c630f415e982d09179560c14f713
tree33e066849b3449a8d9ed03a8002df5d21d059d86
parent0d4dfd8cedcce27d3409701cf6b82c130634a1c8
Do not warn of missing PT_GNU_RELRO segment when custom DSO filter used

It is most likely that it is not found just because the segment had
been excluded.

Alternatively, we could have registered all segments, and checked the
callback afterwards, but then we could break programs that rely on
GC_has_static_roots_func to avoid overflowing the maximum number of
roots.  In addition, it would make the logic slightly more
complicated, probably without a very good reason since the chance of
this warning to show without the segment being excluded is likely to
be none.

* dyn_load.c [HAVE_DL_ITERATE_PHDR] (GC_register_dynlib_callback):
Do not call WARN() if GC_has_static_roots callback is set.
dyn_load.c