]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
gold: Disable &no_such_symbol_ != NULL check when GOT in use
authorH.J. Lu <hjl.tools@gmail.com>
Fri, 23 Aug 2024 23:03:44 +0000 (16:03 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Wed, 28 Aug 2024 12:51:58 +0000 (05:51 -0700)
commitdbb062e5e9204fab16caaf87d4efc2e703039bab
treed35b5cb913258b39b7367fbf670f2057aabf7642
parent57a3845126b3cbba672efc31a15941b3e2c9d8bd
gold: Disable &no_such_symbol_ != NULL check when GOT in use

Since this test:

  if (&no_such_symbol_ != NULL)
    {
      fprintf(stderr, "FAILED weak undef test 4: %s\n",
              "&no_such_symbol_ is not NULL");
      status = 1;
    }

always fails when GOT is used and aarch64 always uses GOT, disable it
for aarch64 and PIC.

PR gold/32112
* testsuite/weak_undef_test.cc (main): Disable the
&no_such_symbol_ != NULL check for aarch64 and PIC.

Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
gold/testsuite/weak_undef_test.cc