csu: Always use __executable_start in gmon-start.c
authorFlorian Weimer <fweimer@redhat.com>
Sun, 5 Dec 2021 12:50:17 +0000 (13:50 +0100)
committerFlorian Weimer <fweimer@redhat.com>
Sun, 5 Dec 2021 12:50:21 +0000 (13:50 +0100)
commit4fb4e7e821e36180835bf88e363f9f13b5797e3a
treee315c682e44885fe627ad0a2d10d006fef8ee140
parentc1cb2deeca1a85c6fc5bd41b90816d48a95bc434
csu: Always use __executable_start in gmon-start.c

Current binutils defines __executable_start as the lowest text
address, so using the entry point address as a fallback is no
longer necessary.  As a result, overriding <entry.h> is only
necessary if the entry point is not called _start.

The previous approach to define __ASSEMBLY__ to suppress the
declaration breaks if headers included by <entry.h> are not
compatible with __ASSEMBLY__.  This happens with rseq integration
because it is necessary to include kernel headers in more places.

Reviewed-by: H.J. Lu <hjl.tools@gmail.com>
csu/gmon-start.c
sysdeps/hppa/entry.h [deleted file]
sysdeps/ia64/entry.h [deleted file]
sysdeps/powerpc/powerpc64/entry.h [deleted file]