diff options
author | Florian Weimer <fweimer@redhat.com> | 2020-05-18 14:56:26 +0200 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2020-05-18 15:39:34 +0200 |
commit | ce12fc711387375d0248ab3ff9084fb958c43bc6 (patch) | |
tree | 209238fe57d7638b79a7c112fe8c2192256e0324 /elf/sofini.c | |
parent | 7b5bfe77836442b9aeb75cc520f0d1eb7f82be67 (diff) | |
download | glibc-ce12fc711387375d0248ab3ff9084fb958c43bc6.zip glibc-ce12fc711387375d0248ab3ff9084fb958c43bc6.tar.gz glibc-ce12fc711387375d0248ab3ff9084fb958c43bc6.tar.bz2 |
Remove NO_CTORS_DTORS_SECTIONS macro
This was originally added to support binutils older than version
2.22:
<https://sourceware.org/ml/libc-alpha/2010-12/msg00051.html>
Since 2.22 is older than the minimum required binutils version
for building glibc, we no longer need this. (The changes do
not impact the statically linked startup code.)
Diffstat (limited to 'elf/sofini.c')
-rw-r--r-- | elf/sofini.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/elf/sofini.c b/elf/sofini.c index 13e74b7..1c526fd 100644 --- a/elf/sofini.c +++ b/elf/sofini.c @@ -1,15 +1,3 @@ -/* Finalizer module for ELF shared C library. This provides terminating - null pointer words in the `.ctors' and `.dtors' sections. */ - -#ifndef NO_CTORS_DTORS_SECTIONS -static void (*const __CTOR_END__[1]) (void) - __attribute__ ((used, section (".ctors"))) - = { 0 }; -static void (*const __DTOR_END__[1]) (void) - __attribute__ ((used, section (".dtors"))) - = { 0 }; -#endif - /* Terminate the frame unwind info section with a 4byte 0 as a sentinel; this would be the 'length' field in a real FDE. */ |