[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/23161] __bss_start, _end and _edata aren't marked as hidden
From: |
hjl.tools at gmail dot com |
Subject: |
[Bug ld/23161] __bss_start, _end and _edata aren't marked as hidden |
Date: |
Tue, 05 Jun 2018 17:05:41 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=23161
--- Comment #7 from H.J. Lu <hjl.tools at gmail dot com> ---
(In reply to Mark Johnston from comment #2)
> (In reply to Alan Modra from comment #1)
> FreeBSD's libc uses _end to initialize curbrk. At a glance, OpenBSD and
> NetBSD appear to do this as well. For this use case it is crucial that _end
> be present in the executable's dynsym, since libc will otherwise use its
> internal definition.
In glibc, ld.so has
/* These defined magically in the linker script. */
extern char _begin[] attribute_hidden;
extern char _etext[] attribute_hidden;
extern char _end[] attribute_hidden;
it can't reference _end defined in executables.
--
You are receiving this mail because:
You are on the CC list for the bug.
- [Bug ld/23161] __bss_start, _end and _edata aren't marked as hidden, markj at FreeBSD dot org, 2018/06/04
- [Bug ld/23161] __bss_start, _end and _edata aren't marked as hidden,
hjl.tools at gmail dot com <=
- [Bug ld/23161] __bss_start, _end and _edata aren't marked as hidden, amodra at gmail dot com, 2018/06/06
- [Bug ld/23161] __bss_start, _end and _edata aren't marked as hidden, cvs-commit at gcc dot gnu.org, 2018/06/08
- [Bug ld/23161] __bss_start, _end and _edata aren't marked as hidden, cvs-commit at gcc dot gnu.org, 2018/06/08
- [Bug ld/23161] __bss_start, _end and _edata aren't marked as hidden, hjl.tools at gmail dot com, 2018/06/13