]> git.ipfire.org Git - thirdparty/glibc.git/commit
elf: Assert that objects are relocated before their constructors run
authorFlorian Weimer <fweimer@redhat.com>
Mon, 18 May 2020 13:21:04 +0000 (15:21 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Mon, 18 May 2020 13:30:09 +0000 (15:30 +0200)
commit7b5bfe77836442b9aeb75cc520f0d1eb7f82be67
tree042242b904ee724c8beab0f6f0a816f095fcd09f
parentaa70d0563256b8ea053203177f756bca33b5cf37
elf: Assert that objects are relocated before their constructors run

If we try to run constructors before relocation, this is always
a dynamic linker bug.  An assert is easier to notice than a call
via an invalid function pointer (which may not even produce a valid
call stack).

Reviewed-by: Carlos O'Donell <carlos@redhat.com>
elf/dl-init.c