PR12265, Compiling ld/ fails on Solaris 8
authorAlan Modra <amodra@gmail.com>
Fri, 26 Aug 2022 08:15:09 +0000 (17:45 +0930)
committerAlan Modra <amodra@gmail.com>
Fri, 26 Aug 2022 09:26:01 +0000 (18:56 +0930)
commit3055522ab17ac7c6781a3507ebac0fab1c3aa5a4
tree50cf047620fef84f79ea2d0118dfa596ac99effc
parent8d00b2b74b8cb55432d2a497eec22cac582d9ea7
PR12265, Compiling ld/ fails on Solaris 8

The fail was due to -Werror and headers included by dlfcn.h and
elf-bfd.h disagreeing about AT_DCACHEBSIZE and other AT_*.  Not a
serious problem obviously, since release versions of binutils don't
enable -Werror and the defines are not used.  Anyway, reduce the
number of files that might hit this problem by only including dlfcn.h
where it is needed.

PR 12265
* sysdep.h: Don't include dlfcn.h here.
* plugin.c: Include it here.
ld/plugin.c
ld/sysdep.h