]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
elf: Remove the unused _etext declaration
authorH.J. Lu <hjl.tools@gmail.com>
Sun, 15 Jun 2025 04:37:26 +0000 (12:37 +0800)
committerH.J. Lu <hjl.tools@gmail.com>
Sun, 15 Jun 2025 04:42:24 +0000 (12:42 +0800)
Since

commit 53df2ce6885da3d0e89e87dca7b095622296014f
Author: Florian Weimer <fweimer@redhat.com>
Date:   Fri Sep 8 13:02:06 2023 +0200

    elf: Remove unused l_text_end field from struct link_map

removed the only reference to _etext, also remove the unused _etext
declaration.

Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
elf/rtld.c

index 3af8ee63c39202f047ae67edf3a52a6d1c8ac872..8e8f0e6253acd9db48bd59c532eabbc5167306b0 100644 (file)
@@ -428,7 +428,6 @@ static ElfW(Addr) _dl_start_final (void *arg,
 
 /* These are defined magically by the linker.  */
 extern const ElfW(Ehdr) __ehdr_start attribute_hidden;
-extern char _etext[] attribute_hidden;
 extern char _end[] attribute_hidden;