Fix musl build on Linux
authorDongsheng Song <dongsheng.song@gmail.com>
Tue, 14 Feb 2023 11:51:29 +0000 (12:51 +0100)
committerEric Botcazou <ebotcazou@adacore.com>
Tue, 14 Feb 2023 11:54:37 +0000 (12:54 +0100)
commita16fc9333f1762d9b5a9da7239fe6a5cc9a6d190
treedb4e6a44ff0bb562355897379465af4e2d5635c8
parent994224236e0231807681b62e880d3c2772c69521
Fix musl build on Linux

The commit "ada: Add PIE support to backtraces on Linux" uses
_r_debug under Linux unconditionally. It is incorrect since musl
libc does not define _r_debug like glibc.

gcc/ada/
* adaint.c [Linux]: Include <features.h>.
(__gnat_get_executable_load_address) [Linux]: Enable only for
glibc and uClibc.
gcc/ada/adaint.c