1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Enable "make annocheck" on platforms other than Linux.

The annocheck supports ELF format binaries compiled for any OS and for any
architecture. It can work in not only Linux but also FreeBSD and Solaris.
It is designed to be independent of the host OS and the architecture.

Even in Mac, as the binaries are Mach-O foramt, the annocheck fails correctly
with the message.

e.g. Test binaries compiled for Mac OSX 10.13.6 (target_os: darwin17) in Fedora 35.

```
$ cat /etc/fedora-release
Fedora release 35 (Thirty Five)

$ file ruby
ruby: Mach-O 64-bit x86_64 executable, flags:<NOUNDEFS|DYLDLINK|TWOLEVEL|WEAK_DEFINES|BINDS_TO_WEAK|PIE>

$ annocheck ruby
annocheck: Version 10.66.
annocheck: Warning: ruby: is not an ELF format file.
```

See <https://sourceware.org/bugzilla/show_bug.cgi?id=29173> for details.
This commit is contained in:
Jun Aruga 2022-05-18 14:24:18 +02:00 committed by Jun Aruga
parent b2e58b02ae
commit a80f5c5365
Notes: git 2022-06-13 19:12:48 +09:00

View file

@ -1447,10 +1447,11 @@ yes-test-bundler-parallel: yes-test-bundler-prepare
$(PARALLELRSPECOPTS) $(srcdir)/spec/bundler/$(BUNDLER_SPECS)
no-test-bundler-parallel:
test-annocheck: $(target_os)-test-annocheck
linux-test-annocheck: $(PROGRAM)
# The annocheck supports ELF format binaries compiled for any OS and for any
# architecture. It is designed to be independent of the host OS and the
# architecture. The test-annocheck.sh requires docker or podman.
test-annocheck: $(PROGRAM)
$(tooldir)/test-annocheck.sh $(PROGRAM)
$(target_os)-test-annocheck: PHONY
GEM = up
sync-default-gems: