]> git.ipfire.org Git - thirdparty/glibc.git/commit - elf/Makefile
Use __ehdr_start rather than _begin in _dl_start_final
authorAlan Modra <amodra@gmail.com>
Wed, 27 Apr 2022 05:09:10 +0000 (14:39 +0930)
committerAlan Modra <amodra@gmail.com>
Wed, 27 Apr 2022 23:20:11 +0000 (08:50 +0930)
commit6f043e0ee7e477f50a44024ed0cb579d5e3f511d
tree4529aa08035a4e795b1f18daf7f42f67c9db143e
parent911c63a51c690dd1a97dfc587097277029baf00f
Use __ehdr_start rather than _begin in _dl_start_final

__ehdr_start is already used in rltld.c:dl_main, and can serve the
same purpose as _begin.  Besides tidying the code, using linker
defined section relative symbols rather than "-defsym _begin=0" better
reflects the intent of _dl_start_final use of _begin, which is to
refer to the load address of ld.so rather than absolute address zero.

Reviewed-by: Florian Weimer <fweimer@redhat.com>
elf/Makefile
elf/rtld.c