glibc:maskray/stack_chk_guard

Last commit made on 2021-01-12
Get this branch:
git clone -b maskray/stack_chk_guard https://git.launchpad.net/glibc

Branch merges

Branch information

Name:
maskray/stack_chk_guard
Repository:
lp:glibc

Recent commits

0b11ca5... by Fangrui Song <email address hidden>

Unconditionally define __stack_chk_guard [BZ #26817]

__stack_chk_guard is currently unavailable on architectures which define
THREAD_SET_STACK_GUARD, so {gcc,clang} -fstack-protector
-mstack-protector-guard=global will fail to link due to the undefined
symbol.

Define __stack_chk_guard to make -mstack-protector-guard=global compiled
user programs work. `#define THREAD_SET_STACK_GUARD` code is moved
outside of `#ifndef __ASSEMBLER__` so that cpp can preprocess
elf/Versions.

87d583c... by Fangrui Song <email address hidden>

install: Replace scripts/output-format.sed with objdump -f [BZ #26559]

GNU ld and gold have supported --print-output-format since 2011. glibc
requires binutils>=2.25 (2015), so if LD is GNU ld or gold, we can
assume the option is supported.

lld is by default a cross linker supporting multiple targets. It auto
detects the file format and does not need OUTPUT_FORMAT. It does not
support --print-output-format.

By parsing objdump -f, we can support all the three linkers.

Reviewed-by: Adhemerval Zanella <email address hidden>

bf7db6d... by Adhemerval Zanella

math: Add BZ#18980 fix back on dbl-64 cosh

It is regression from 9e97f239eae1f2b1 (Remove dbl-64/wordsize-64
(part 2)) where is missed to add the BZ#18980 fix (9e97f239eae1f2b1).

Checked on i686-linux-gnu.

4dddd7e... by Adhemerval Zanella

posix: Sync tempname with gnulib [BZ #26648]

It syncs with gnulib commit b1268f22f443e8e4b9e. The try_tempname_len
now uses getrandom on each iteration to get entropy and only uses the
clock plus ASLR as source of entropy if getrandom fails.

Checked on x86_64-linux-gnu and i686-linux-gnu.

42dda89... by Adhemerval Zanella

posix: Fix return value of system if shell can not be executed [BZ #27053]

POSIX states that system returned code for failure to execute the shell
shall be as if the shell had terminated using _exit(127). This
behaviour was removed with 5fb7fc96350575.

Checked on x86_64-linux-gnu.

7b9c326... by Adhemerval Zanella

support: Add xchmod wrapper

Checked on x86_64-linux-gnu.

1c426b1... by Joseph Myers <email address hidden>

Update STATX_ATTR_DAX value from Linux 5.10.

This patch updates the value of STATX_ATTR_DAX in bits/statx-generic.h
for a change made in Linux 5.10. (As with previous such changes, this
only does anything if glibc is being used with old kernel headers.)

Tested for x86_64.

313bfd5... by Vincent Chen <email address hidden>

riscv: Initialize $gp before resolving the IRELATIVE relocation

The $gp register may be used to access the global variable in
the PDE program, so the $gp register should be initialized before
executing the IFUNC resolver of PDE program to avoid unexpected
error occurs.

c31b1f5... by Vincent Chen <email address hidden>

riscv: support GNU indirect function

Enable riscv glibc to support GNU indirect function

2cd361b... by Martin Sebor <email address hidden>

posix: Correct attribute access mode on readlinkat [BZ #27024].