mirror of
git://sourceware.org/git/glibc.git
synced 2025-03-06 20:58:33 +01:00
aarch64: Ignore GCS property of ld.so
check_gcs is called for each dependency of a DSO, but the GNU property of the ld.so is not processed so ldso->l_mach.gcs may not be correct. Just assume ld.so is GCS compatible independently of the ELF marking. Reviewed-by: Wilco Dijkstra <Wilco.Dijkstra@arm.com>
This commit is contained in:
parent
4d56a5bbd6
commit
29476485f9
1 changed files with 5 additions and 0 deletions
|
@ -53,6 +53,11 @@ unsupported (void)
|
||||||
static bool
|
static bool
|
||||||
check_gcs (struct link_map *l, const char *program, bool enforced)
|
check_gcs (struct link_map *l, const char *program, bool enforced)
|
||||||
{
|
{
|
||||||
|
#ifdef SHARED
|
||||||
|
/* Ignore GCS marking on ld.so: its properties are not processed. */
|
||||||
|
if (is_rtld_link_map (l->l_real))
|
||||||
|
return true;
|
||||||
|
#endif
|
||||||
/* Binary is marked, all good. */
|
/* Binary is marked, all good. */
|
||||||
if (l->l_mach.gcs)
|
if (l->l_mach.gcs)
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Add table
Reference in a new issue