bug-binutils
[Top][All Lists]
Advanced

[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.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]