Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Package request: elf toolchain #5859

Closed
ofry opened this issue Oct 11, 2019 · 36 comments
Closed

Package request: elf toolchain #5859

ofry opened this issue Oct 11, 2019 · 36 comments

Comments

@ofry
Copy link
Contributor

ofry commented Oct 11, 2019

Project URL: https://sourceforge.net/projects/elftoolchain/

@ofry
Copy link
Contributor Author

ofry commented Oct 11, 2019

This is dependent from BSD make (bmake)

@ofry
Copy link
Contributor Author

ofry commented Oct 11, 2019

Tools from this toolchain required for build dynamorio project https://github.com/DynamoRIO/dynamorio/

@ofry
Copy link
Contributor Author

ofry commented Jun 20, 2020

bmake package ported now. So it can be done, I think.

@ofry
Copy link
Contributor Author

ofry commented Jun 20, 2020

Current state:

ofry@games MINGW64 ~/elftoolchain
$ bmake -B
===> common
===> libelf
cc -O2    -MD -MF elf.d -MT elf.o -I. -I/home/ofry/elftoolchain/libelf -I/home/ofry/elftoolchain/libelf/../common -I/home/ofry/elftoolchain/libelf/../common//C/msys64     -c elf.c
In file included from elf.c:27:
./libelf.h:123:2: error: unknown type name 'gid_t'
  123 |  gid_t  ar_gid;
      |  ^~~~~
./libelf.h:127:2: error: unknown type name 'uid_t'
  127 |  uid_t  ar_uid;
      |  ^~~~~
In file included from elf.c:29:
_libelf.h:32:10: fatal error: sys/queue.h: No such file or directory
   32 | #include <sys/queue.h>
      |          ^~~~~~~~~~~~~
compilation terminated.
*** Error code 1

Stop.
bmake.exe[1]: stopped in C:/msys64/home/ofry/elftoolchain/libelf
*** Error code 1

Stop.
bmake.exe[1]: stopped in C:/msys64/home/ofry/elftoolchain

@Biswa96
Copy link
Member

Biswa96 commented Jun 20, 2020

Those headers are *nix specific. So may need some porting exercise. Some queries:

  • Is the package needed for other projects?
  • Are there any msys2 users who will use it?
  • Why not use binutils and elfutils packages?
  • What this package can do which binutils and elfutils can not?

@ofry
Copy link
Contributor Author

ofry commented Jun 20, 2020

Yes, this package needed to port DynamoRio and Dr.Memory to MinGW toolchain.

@ofry
Copy link
Contributor Author

ofry commented Jun 20, 2020

So I really need libelftc and libdwarf from it.

@ofry
Copy link
Contributor Author

ofry commented Jul 2, 2020

I create draft of Windows branch: https://github.com/ofry/elftoolchain/tree/windows-mingw-port

But still no luck:

ofry@games MINGW64 ~/elftoolchain-githubfork
$ bmake -B
===> common
===> libelf
cc -O2    -MD -MF elf.d -MT elf.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c elf.c
elf.c:31:13: error: expected declaration specifiers or '...' before string constant
   31 | ELFTC_VCSID("$Id$");
      |             ^~~~~~
elf.c:34:18: error: 'LIBELF_ARCH' undeclared here (not in a function); did you mean 'LIBELF_ERROR'?
   34 |  .libelf_arch  = LIBELF_ARCH,
      |                  ^~~~~~~~~~~
      |                  LIBELF_ERROR
elf.c:35:22: error: 'LIBELF_BYTEORDER' undeclared here (not in a function)
   35 |  .libelf_byteorder = LIBELF_BYTEORDER,
      |                      ^~~~~~~~~~~~~~~~
elf.c:36:19: error: 'LIBELF_CLASS' undeclared here (not in a function)
   36 |  .libelf_class  = LIBELF_CLASS,
      |                   ^~~~~~~~~~~~
*** Error code 1

Stop.
bmake.exe[1]: stopped in C:/msys64/home/ofry/elftoolchain-githubfork/libelf
*** Error code 1

Stop.
bmake.exe[1]: stopped in C:/msys64/home/ofry/elftoolchain-githubfork

@derekbruening

Any ideas?

@derekbruening
Copy link

Did you search the other builds? Doing so shows that the MSVC patch references those symbols: https://github.com/DynamoRIO/dynamorio/blob/master/ext/drsyms/libelftc-pecoff/libelftc-pecoff.patch#L377

@ofry
Copy link
Contributor Author

ofry commented Jul 7, 2020

@derekbruening Sorry for another dumb question.

Current state:

ofry@games MINGW64 ~/elftoolchain-githubfork
$ bmake -B
===> common
===> libelf
cc -O2    -MD -MF elf.d -MT elf.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c elf.c
cc -O2    -MD -MF elf_begin.d -MT elf_begin.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c elf_begin.c
cc -O2    -MD -MF elf_cntl.d -MT elf_cntl.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c elf_cntl.c
cc -O2    -MD -MF elf_end.d -MT elf_end.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c elf_end.c
cc -O2    -MD -MF elf_errmsg.d -MT elf_errmsg.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c elf_errmsg.c
cc -O2    -MD -MF elf_errno.d -MT elf_errno.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c elf_errno.c
cc -O2    -MD -MF elf_data.d -MT elf_data.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c elf_data.c
cc -O2    -MD -MF elf_fill.d -MT elf_fill.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c elf_fill.c
cc -O2    -MD -MF elf_flag.d -MT elf_flag.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c elf_flag.c
cc -O2    -MD -MF elf_getarhdr.d -MT elf_getarhdr.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c elf_getarhdr.c
cc -O2    -MD -MF elf_getarsym.d -MT elf_getarsym.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c elf_getarsym.c
cc -O2    -MD -MF elf_getbase.d -MT elf_getbase.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c elf_getbase.c
cc -O2    -MD -MF elf_getident.d -MT elf_getident.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c elf_getident.c
cc -O2    -MD -MF elf_hash.d -MT elf_hash.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c elf_hash.c
cc -O2    -MD -MF elf_kind.d -MT elf_kind.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c elf_kind.c
cc -O2    -MD -MF elf_memory.d -MT elf_memory.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c elf_memory.c
cc -O2    -MD -MF elf_next.d -MT elf_next.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c elf_next.c
cc -O2    -MD -MF elf_open.d -MT elf_open.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c elf_open.c
cc -O2    -MD -MF elf_rand.d -MT elf_rand.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c elf_rand.c
cc -O2    -MD -MF elf_rawfile.d -MT elf_rawfile.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c elf_rawfile.c
cc -O2    -MD -MF elf_phnum.d -MT elf_phnum.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c elf_phnum.c
cc -O2    -MD -MF elf_shnum.d -MT elf_shnum.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c elf_shnum.c
cc -O2    -MD -MF elf_shstrndx.d -MT elf_shstrndx.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c elf_shstrndx.c
cc -O2    -MD -MF elf_scn.d -MT elf_scn.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c elf_scn.c
cc -O2    -MD -MF elf_strptr.d -MT elf_strptr.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c elf_strptr.c
elf_strptr.c: In function 'elf_strptr':
elf_strptr.c:109:13: warning: implicit declaration of function 'roundup2' [-Wimplicit-function-declaration]
  109 |     count = roundup2(count, alignment);
      |             ^~~~~~~~
cc -O2    -MD -MF elf_update.d -MT elf_update.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c elf_update.c
elf_update.c:96:2: error: expected specifier-qualifier-list before 'SLIST_ENTRY'
   96 |  SLIST_ENTRY(_Elf_Extent) ex_next;
      |  ^~~~~~~~~~~
elf_update.c:103:1: warning: data definition has no type or storage class
  103 | SLIST_HEAD(_Elf_Extent_List, _Elf_Extent);
      | ^~~~~~~~~~
elf_update.c:103:1: warning: type defaults to 'int' in declaration of 'SLIST_HEAD' [-Wimplicit-int]
elf_update.c:103:1: warning: parameter names (without types) in function declaration
elf_update.c: In function '_libelf_compute_section_extents':
elf_update.c:258:15: warning: implicit declaration of function 'roundup2' [-Wimplicit-function-declaration]
  258 |    scn_size = roundup2(scn_size, d->d_align);
      |               ^~~~~~~~
elf_update.c:317:14: warning: implicit declaration of function 'roundup' [-Wimplicit-function-declaration]
  317 |  sh_offset = roundup((uint64_t) rc, sh_align);
      |              ^~~~~~~
elf_update.c: At top level:
elf_update.c:349:32: warning: 'struct _Elf_Extent_List' declared inside parameter list will not be visible outside of this definition or declaration
  349 | _libelf_release_extents(struct _Elf_Extent_List *extents)
      |                                ^~~~~~~~~~~~~~~~
elf_update.c: In function '_libelf_release_extents':
elf_update.c:353:15: warning: implicit declaration of function 'SLIST_FIRST'; did you mean 'ELF_T_FIRST'? [-Wimplicit-function-declaration]
  353 |  while ((ex = SLIST_FIRST(extents)) != NULL) {
      |               ^~~~~~~~~~~
      |               ELF_T_FIRST
elf_update.c:353:13: warning: assignment to 'struct _Elf_Extent *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
  353 |  while ((ex = SLIST_FIRST(extents)) != NULL) {
      |             ^
elf_update.c:354:3: warning: implicit declaration of function 'SLIST_REMOVE_HEAD'; did you mean 'STAILQ_REMOVE_HEAD'? [-Wimplicit-function-declaration]
  354 |   SLIST_REMOVE_HEAD(extents, ex_next);
      |   ^~~~~~~~~~~~~~~~~
      |   STAILQ_REMOVE_HEAD
elf_update.c:354:30: error: 'ex_next' undeclared (first use in this function); did you mean 'elf_next'?
  354 |   SLIST_REMOVE_HEAD(extents, ex_next);
      |                              ^~~~~~~
      |                              elf_next
elf_update.c:354:30: note: each undeclared identifier is reported only once for each function it appears in
elf_update.c: At top level:
elf_update.c:366:33: warning: 'struct _Elf_Extent_List' declared inside parameter list will not be visible outside of this definition or declaration
  366 | _libelf_extent_is_unused(struct _Elf_Extent_List *extents,
      |                                 ^~~~~~~~~~~~~~~~
elf_update.c: In function '_libelf_extent_is_unused':
elf_update.c:375:2: warning: implicit declaration of function 'SLIST_FOREACH'; did you mean 'TAILQ_FOREACH'? [-Wimplicit-function-declaration]
  375 |  SLIST_FOREACH(t, extents, ex_next) {
      |  ^~~~~~~~~~~~~
      |  TAILQ_FOREACH
elf_update.c:375:28: error: 'ex_next' undeclared (first use in this function); did you mean 'elf_next'?
  375 |  SLIST_FOREACH(t, extents, ex_next) {
      |                            ^~~~~~~
      |                            elf_next
elf_update.c:375:36: error: expected ';' before '{' token
  375 |  SLIST_FOREACH(t, extents, ex_next) {
      |                                    ^~
      |                                    ;
elf_update.c: At top level:
elf_update.c:408:30: warning: 'struct _Elf_Extent_List' declared inside parameter list will not be visible outside of this definition or declaration
  408 | _libelf_insert_extent(struct _Elf_Extent_List *extents, int type,
      |                              ^~~~~~~~~~~~~~~~
elf_update.c: In function '_libelf_insert_extent':
elf_update.c:421:32: warning: passing argument 1 of '_libelf_extent_is_unused' from incompatible pointer type [-Wincompatible-pointer-types]
  421 |  if (!_libelf_extent_is_unused(extents, start, size, &prevt)) {
      |                                ^~~~~~~
      |                                |
      |                                struct _Elf_Extent_List *
elf_update.c:366:51: note: expected 'struct _Elf_Extent_List *' but argument is of type 'struct _Elf_Extent_List *'
  366 | _libelf_extent_is_unused(struct _Elf_Extent_List *extents,
      |                          ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
elf_update.c:431:4: error: 'struct _Elf_Extent' has no member named 'ex_start'
  431 |  ex->ex_start = start;
      |    ^~
elf_update.c:432:4: error: 'struct _Elf_Extent' has no member named 'ex_size'
  432 |  ex->ex_size = size;
      |    ^~
elf_update.c:433:4: error: 'struct _Elf_Extent' has no member named 'ex_desc'
  433 |  ex->ex_desc = desc;
      |    ^~
elf_update.c:434:4: error: 'struct _Elf_Extent' has no member named 'ex_type'
  434 |  ex->ex_type = type;
      |    ^~
elf_update.c:438:3: warning: implicit declaration of function 'SLIST_INSERT_AFTER'; did you mean 'STAILQ_INSERT_AFTER'? [-Wimplicit-function-declaration]
  438 |   SLIST_INSERT_AFTER(prevt, ex, ex_next);
      |   ^~~~~~~~~~~~~~~~~~
      |   STAILQ_INSERT_AFTER
elf_update.c:438:33: error: 'ex_next' undeclared (first use in this function); did you mean 'elf_next'?
  438 |   SLIST_INSERT_AFTER(prevt, ex, ex_next);
      |                                 ^~~~~~~
      |                                 elf_next
elf_update.c:440:3: warning: implicit declaration of function 'SLIST_INSERT_HEAD'; did you mean 'STAILQ_INSERT_HEAD'? [-Wimplicit-function-declaration]
  440 |   SLIST_INSERT_HEAD(extents, ex, ex_next);
      |   ^~~~~~~~~~~~~~~~~
      |   STAILQ_INSERT_HEAD
elf_update.c: At top level:
elf_update.c:449:50: warning: 'struct _Elf_Extent_List' declared inside parameter list will not be visible outside of this definition or declaration
  449 | _libelf_resync_sections(Elf *e, off_t rc, struct _Elf_Extent_List *extents)
      |                                                  ^~~~~~~~~~~~~~~~
elf_update.c: In function '_libelf_resync_sections':
elf_update.c:476:30: warning: passing argument 1 of '_libelf_insert_extent' from incompatible pointer type [-Wincompatible-pointer-types]
  476 |   if (!_libelf_insert_extent(extents, ELF_EXTENT_SECTION,
      |                              ^~~~~~~
      |                              |
      |                              struct _Elf_Extent_List *
elf_update.c:408:48: note: expected 'struct _Elf_Extent_List *' but argument is of type 'struct _Elf_Extent_List *'
  408 | _libelf_insert_extent(struct _Elf_Extent_List *extents, int type,
      |                       ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
elf_update.c: At top level:
elf_update.c:510:35: warning: 'struct _Elf_Extent_List' declared inside parameter list will not be visible outside of this definition or declaration
  510 | _libelf_resync_elf(Elf *e, struct _Elf_Extent_List *extents)
      |                                   ^~~~~~~~~~~~~~~~
elf_update.c: In function '_libelf_resync_elf':
elf_update.c:604:29: warning: passing argument 1 of '_libelf_insert_extent' from incompatible pointer type [-Wincompatible-pointer-types]
  604 |  if (!_libelf_insert_extent(extents, ELF_EXTENT_EHDR, 0, (uint64_t) rc,
      |                             ^~~~~~~
      |                             |
      |                             struct _Elf_Extent_List *
elf_update.c:408:48: note: expected 'struct _Elf_Extent_List *' but argument is of type 'struct _Elf_Extent_List *'
  408 | _libelf_insert_extent(struct _Elf_Extent_List *extents, int type,
      |                       ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
elf_update.c:638:30: warning: passing argument 1 of '_libelf_insert_extent' from incompatible pointer type [-Wincompatible-pointer-types]
  638 |   if (!_libelf_insert_extent(extents, ELF_EXTENT_PHDR,
      |                              ^~~~~~~
      |                              |
      |                              struct _Elf_Extent_List *
elf_update.c:408:48: note: expected 'struct _Elf_Extent_List *' but argument is of type 'struct _Elf_Extent_List *'
  408 | _libelf_insert_extent(struct _Elf_Extent_List *extents, int type,
      |                       ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
elf_update.c:654:43: warning: passing argument 3 of '_libelf_resync_sections' from incompatible pointer type [-Wincompatible-pointer-types]
  654 |  if ((rc = _libelf_resync_sections(e, rc, extents)) < 0)
      |                                           ^~~~~~~
      |                                           |
      |                                           struct _Elf_Extent_List *
elf_update.c:449:68: note: expected 'struct _Elf_Extent_List *' but argument is of type 'struct _Elf_Extent_List *'
  449 | _libelf_resync_sections(Elf *e, off_t rc, struct _Elf_Extent_List *extents)
      |                                           ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
elf_update.c:684:30: warning: passing argument 1 of '_libelf_insert_extent' from incompatible pointer type [-Wincompatible-pointer-types]
  684 |   if (!_libelf_insert_extent(extents, ELF_EXTENT_SHDR,
      |                              ^~~~~~~
      |                              |
      |                              struct _Elf_Extent_List *
elf_update.c:408:48: note: expected 'struct _Elf_Extent_List *' but argument is of type 'struct _Elf_Extent_List *'
  408 | _libelf_insert_extent(struct _Elf_Extent_List *extents, int type,
      |                       ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
In file included from elf_update.c:30:
elf_update.c: In function '_libelf_write_scn':
elf_update.c:731:11: error: 'struct _Elf_Extent' has no member named 'ex_type'
  731 |  assert(ex->ex_type == ELF_EXTENT_SECTION);
      |           ^~
elf_update.c:733:8: error: 'struct _Elf_Extent' has no member named 'ex_desc'
  733 |  s = ex->ex_desc;
      |        ^~
elf_update.c:734:17: error: 'struct _Elf_Extent' has no member named 'ex_start'
  734 |  rc = (off_t) ex->ex_start;
      |                 ^~
In file included from elf_update.c:30:
elf_update.c: In function '_libelf_write_ehdr':
elf_update.c:853:11: error: 'struct _Elf_Extent' has no member named 'ex_type'
  853 |  assert(ex->ex_type == ELF_EXTENT_EHDR);
      |           ^~
elf_update.c:854:11: error: 'struct _Elf_Extent' has no member named 'ex_start'
  854 |  assert(ex->ex_start == 0); /* Ehdr always comes first. */
      |           ^~
elf_update.c: In function '_libelf_write_phdr':
elf_update.c:900:11: error: 'struct _Elf_Extent' has no member named 'ex_type'
  900 |  assert(ex->ex_type == ELF_EXTENT_PHDR);
      |           ^~
elf_update.c:921:11: error: 'struct _Elf_Extent' has no member named 'ex_start'
  921 |  assert(ex->ex_start == phoff);
      |           ^~
elf_update.c:938:21: error: 'struct _Elf_Extent' has no member named 'ex_start'
  938 |  dst.d_buf = nf + ex->ex_start;
      |                     ^~
In file included from elf_update.c:30:
elf_update.c: In function '_libelf_write_shdr':
elf_update.c:963:11: error: 'struct _Elf_Extent' has no member named 'ex_type'
  963 |  assert(ex->ex_type == ELF_EXTENT_SHDR);
      |           ^~
elf_update.c:984:11: error: 'struct _Elf_Extent' has no member named 'ex_start'
  984 |  assert(ex->ex_start == shoff);
      |           ^~
elf_update.c:1005:22: error: 'struct _Elf_Extent' has no member named 'ex_start'
 1005 |   dst.d_buf = nf + ex->ex_start + scn->s_ndx * fsz;
      |                      ^~
elf_update.c:1012:21: error: 'struct _Elf_Extent' has no member named 'ex_start'
 1012 |  return ((off_t) (ex->ex_start + nscn * fsz));
      |                     ^~
elf_update.c: At top level:
elf_update.c:1033:49: warning: 'struct _Elf_Extent_List' declared inside parameter list will not be visible outside of this definition or declaration
 1033 | _libelf_write_elf(Elf *e, off_t newsize, struct _Elf_Extent_List *extents)
      |                                                 ^~~~~~~~~~~~~~~~
elf_update.c: In function '_libelf_write_elf':
elf_update.c:1050:29: error: 'ex_next' undeclared (first use in this function); did you mean 'elf_next'?
 1050 |  SLIST_FOREACH(ex, extents, ex_next) {
      |                             ^~~~~~~
      |                             elf_next
elf_update.c:1050:37: error: expected ';' before '{' token
 1050 |  SLIST_FOREACH(ex, extents, ex_next) {
      |                                     ^~
      |                                     ;
elf_update.c: In function 'elf_update':
elf_update.c:1202:26: error: storage size of 'extents' isn't known
 1202 |  struct _Elf_Extent_List extents;
      |                          ^~~~~~~
elf_update.c:1225:2: warning: implicit declaration of function 'SLIST_INIT' [-Wimplicit-function-declaration]
 1225 |  SLIST_INIT(&extents);
      |  ^~~~~~~~~~
*** Error code 1

Stop.
bmake.exe[1]: stopped in C:/msys64/home/ofry/elftoolchain-githubfork/libelf
*** Error code 1

Stop.
bmake.exe[1]: stopped in C:/msys64/home/ofry/elftoolchain-githubfork

Any ideas?

@ofry
Copy link
Contributor Author

ofry commented Jul 9, 2020

I put sys/queue.h from Cygwin project and got rid of macro STAILQ_LAST.

So I got:

ofry@games MINGW64 ~/elftoolchain-githubfork
$ bmake -B
===> common
===> libelf
cc -O2    -MD -MF elf.d -MT elf.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c elf.c
cc -O2    -MD -MF elf_begin.d -MT elf_begin.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c elf_begin.c
cc -O2    -MD -MF elf_cntl.d -MT elf_cntl.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c elf_cntl.c
cc -O2    -MD -MF elf_end.d -MT elf_end.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c elf_end.c
cc -O2    -MD -MF elf_errmsg.d -MT elf_errmsg.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c elf_errmsg.c
cc -O2    -MD -MF elf_errno.d -MT elf_errno.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c elf_errno.c
cc -O2    -MD -MF elf_data.d -MT elf_data.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c elf_data.c
cc -O2    -MD -MF elf_fill.d -MT elf_fill.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c elf_fill.c
cc -O2    -MD -MF elf_flag.d -MT elf_flag.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c elf_flag.c
cc -O2    -MD -MF elf_getarhdr.d -MT elf_getarhdr.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c elf_getarhdr.c
cc -O2    -MD -MF elf_getarsym.d -MT elf_getarsym.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c elf_getarsym.c
cc -O2    -MD -MF elf_getbase.d -MT elf_getbase.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c elf_getbase.c
cc -O2    -MD -MF elf_getident.d -MT elf_getident.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c elf_getident.c
cc -O2    -MD -MF elf_hash.d -MT elf_hash.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c elf_hash.c
cc -O2    -MD -MF elf_kind.d -MT elf_kind.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c elf_kind.c
cc -O2    -MD -MF elf_memory.d -MT elf_memory.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c elf_memory.c
cc -O2    -MD -MF elf_next.d -MT elf_next.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c elf_next.c
cc -O2    -MD -MF elf_open.d -MT elf_open.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c elf_open.c
cc -O2    -MD -MF elf_rand.d -MT elf_rand.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c elf_rand.c
cc -O2    -MD -MF elf_rawfile.d -MT elf_rawfile.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c elf_rawfile.c
cc -O2    -MD -MF elf_phnum.d -MT elf_phnum.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c elf_phnum.c
cc -O2    -MD -MF elf_shnum.d -MT elf_shnum.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c elf_shnum.c
cc -O2    -MD -MF elf_shstrndx.d -MT elf_shstrndx.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c elf_shstrndx.c
cc -O2    -MD -MF elf_scn.d -MT elf_scn.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c elf_scn.c
cc -O2    -MD -MF elf_strptr.d -MT elf_strptr.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c elf_strptr.c
elf_strptr.c: In function 'elf_strptr':
elf_strptr.c:109:13: warning: implicit declaration of function 'roundup2' [-Wimplicit-function-declaration]
  109 |     count = roundup2(count, alignment);
      |             ^~~~~~~~
cc -O2    -MD -MF elf_update.d -MT elf_update.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c elf_update.c
elf_update.c: In function '_libelf_compute_section_extents':
elf_update.c:258:15: warning: implicit declaration of function 'roundup2' [-Wimplicit-function-declaration]
  258 |    scn_size = roundup2(scn_size, d->d_align);
      |               ^~~~~~~~
elf_update.c:317:14: warning: implicit declaration of function 'roundup' [-Wimplicit-function-declaration]
  317 |  sh_offset = roundup((uint64_t) rc, sh_align);
      |              ^~~~~~~
cc -O2    -MD -MF elf_version.d -MT elf_version.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c elf_version.c
cc -O2    -MD -MF gelf_cap.d -MT gelf_cap.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c gelf_cap.c
cc -O2    -MD -MF gelf_checksum.d -MT gelf_checksum.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c gelf_checksum.c
cc -O2    -MD -MF gelf_dyn.d -MT gelf_dyn.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c gelf_dyn.c
cc -O2    -MD -MF gelf_ehdr.d -MT gelf_ehdr.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c gelf_ehdr.c
cc -O2    -MD -MF gelf_getclass.d -MT gelf_getclass.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c gelf_getclass.c
cc -O2    -MD -MF gelf_fsize.d -MT gelf_fsize.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c gelf_fsize.c
cc -O2    -MD -MF gelf_move.d -MT gelf_move.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c gelf_move.c
cc -O2    -MD -MF gelf_phdr.d -MT gelf_phdr.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c gelf_phdr.c
cc -O2    -MD -MF gelf_rel.d -MT gelf_rel.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c gelf_rel.c
cc -O2    -MD -MF gelf_rela.d -MT gelf_rela.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c gelf_rela.c
cc -O2    -MD -MF gelf_shdr.d -MT gelf_shdr.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c gelf_shdr.c
cc -O2    -MD -MF gelf_sym.d -MT gelf_sym.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c gelf_sym.c
cc -O2    -MD -MF gelf_syminfo.d -MT gelf_syminfo.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c gelf_syminfo.c
cc -O2    -MD -MF gelf_symshndx.d -MT gelf_symshndx.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c gelf_symshndx.c
cc -O2    -MD -MF gelf_xlate.d -MT gelf_xlate.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c gelf_xlate.c
cc -O2    -MD -MF libelf_align.d -MT libelf_align.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c libelf_align.c
cc -O2    -MD -MF libelf_allocate.d -MT libelf_allocate.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c libelf_allocate.c
cc -O2    -MD -MF libelf_ar.d -MT libelf_ar.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c libelf_ar.c
cc -O2    -MD -MF libelf_ar_util.d -MT libelf_ar_util.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c libelf_ar_util.c
cc -O2    -MD -MF libelf_checksum.d -MT libelf_checksum.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c libelf_checksum.c
cc -O2    -MD -MF libelf_data.d -MT libelf_data.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c libelf_data.c
cc -O2    -MD -MF libelf_ehdr.d -MT libelf_ehdr.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c libelf_ehdr.c
cc -O2    -MD -MF libelf_elfmachine.d -MT libelf_elfmachine.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c libelf_elfmachine.c
cc -O2    -MD -MF libelf_extended.d -MT libelf_extended.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c libelf_extended.c
cc -O2    -MD -MF libelf_memory.d -MT libelf_memory.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c libelf_memory.c
cc -O2    -MD -MF libelf_open.d -MT libelf_open.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c libelf_open.c
libelf_open.c: In function '_libelf_open_object':
libelf_open.c:147:7: warning: implicit declaration of function 'S_ISSOCK' [-Wimplicit-function-declaration]
  147 |      !S_ISSOCK(mode)) {
      |       ^~~~~~~~
cc -O2    -MD -MF libelf_phdr.d -MT libelf_phdr.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c libelf_phdr.c
cc -O2    -MD -MF libelf_shdr.d -MT libelf_shdr.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c libelf_shdr.c
cc -O2    -MD -MF libelf_xlate.d -MT libelf_xlate.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c libelf_xlate.c
m4 -D SRCDIR=/home/ofry/elftoolchain-githubfork/libelf  libelf_fsize.m4 > libelf_fsize.c
cc -O2    -MD -MF libelf_fsize.d -MT libelf_fsize.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c libelf_fsize.c
m4 -D SRCDIR=/home/ofry/elftoolchain-githubfork/libelf  libelf_msize.m4 > libelf_msize.c
cc -O2    -MD -MF libelf_msize.d -MT libelf_msize.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c libelf_msize.c
m4 -D SRCDIR=/home/ofry/elftoolchain-githubfork/libelf  libelf_convert.m4 > libelf_convert.c
cc -O2    -MD -MF libelf_convert.d -MT libelf_convert.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c libelf_convert.c
building standard elf library
/mingw64/bin/ranlib libelf.a
cc -O2    -MD -MF elf.d -MT elf.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c -pg -DGPROF -DPROF elf.c -o elf.po.o
cc -O2    -MD -MF elf_begin.d -MT elf_begin.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c -pg -DGPROF -DPROF elf_begin.c -o elf_begin.po.o
cc -O2    -MD -MF elf_cntl.d -MT elf_cntl.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c -pg -DGPROF -DPROF elf_cntl.c -o elf_cntl.po.o
cc -O2    -MD -MF elf_end.d -MT elf_end.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c -pg -DGPROF -DPROF elf_end.c -o elf_end.po.o
cc -O2    -MD -MF elf_errmsg.d -MT elf_errmsg.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c -pg -DGPROF -DPROF elf_errmsg.c -o elf_errmsg.po.o
cc -O2    -MD -MF elf_errno.d -MT elf_errno.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c -pg -DGPROF -DPROF elf_errno.c -o elf_errno.po.o
cc -O2    -MD -MF elf_data.d -MT elf_data.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c -pg -DGPROF -DPROF elf_data.c -o elf_data.po.o
cc -O2    -MD -MF elf_fill.d -MT elf_fill.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c -pg -DGPROF -DPROF elf_fill.c -o elf_fill.po.o
cc -O2    -MD -MF elf_flag.d -MT elf_flag.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c -pg -DGPROF -DPROF elf_flag.c -o elf_flag.po.o
cc -O2    -MD -MF elf_getarhdr.d -MT elf_getarhdr.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c -pg -DGPROF -DPROF elf_getarhdr.c -o elf_getarhdr.po.o
cc -O2    -MD -MF elf_getarsym.d -MT elf_getarsym.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c -pg -DGPROF -DPROF elf_getarsym.c -o elf_getarsym.po.o
cc -O2    -MD -MF elf_getbase.d -MT elf_getbase.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c -pg -DGPROF -DPROF elf_getbase.c -o elf_getbase.po.o
cc -O2    -MD -MF elf_getident.d -MT elf_getident.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c -pg -DGPROF -DPROF elf_getident.c -o elf_getident.po.o
cc -O2    -MD -MF elf_hash.d -MT elf_hash.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c -pg -DGPROF -DPROF elf_hash.c -o elf_hash.po.o
cc -O2    -MD -MF elf_kind.d -MT elf_kind.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c -pg -DGPROF -DPROF elf_kind.c -o elf_kind.po.o
cc -O2    -MD -MF elf_memory.d -MT elf_memory.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c -pg -DGPROF -DPROF elf_memory.c -o elf_memory.po.o
cc -O2    -MD -MF elf_next.d -MT elf_next.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c -pg -DGPROF -DPROF elf_next.c -o elf_next.po.o
cc -O2    -MD -MF elf_open.d -MT elf_open.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c -pg -DGPROF -DPROF elf_open.c -o elf_open.po.o
cc -O2    -MD -MF elf_rand.d -MT elf_rand.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c -pg -DGPROF -DPROF elf_rand.c -o elf_rand.po.o
cc -O2    -MD -MF elf_rawfile.d -MT elf_rawfile.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c -pg -DGPROF -DPROF elf_rawfile.c -o elf_rawfile.po.o
cc -O2    -MD -MF elf_phnum.d -MT elf_phnum.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c -pg -DGPROF -DPROF elf_phnum.c -o elf_phnum.po.o
cc -O2    -MD -MF elf_shnum.d -MT elf_shnum.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c -pg -DGPROF -DPROF elf_shnum.c -o elf_shnum.po.o
cc -O2    -MD -MF elf_shstrndx.d -MT elf_shstrndx.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c -pg -DGPROF -DPROF elf_shstrndx.c -o elf_shstrndx.po.o
cc -O2    -MD -MF elf_scn.d -MT elf_scn.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c -pg -DGPROF -DPROF elf_scn.c -o elf_scn.po.o
cc -O2    -MD -MF elf_strptr.d -MT elf_strptr.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c -pg -DGPROF -DPROF elf_strptr.c -o elf_strptr.po.o
elf_strptr.c: In function 'elf_strptr':
elf_strptr.c:109:13: warning: implicit declaration of function 'roundup2' [-Wimplicit-function-declaration]
  109 |     count = roundup2(count, alignment);
      |             ^~~~~~~~
cc -O2    -MD -MF elf_update.d -MT elf_update.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c -pg -DGPROF -DPROF elf_update.c -o elf_update.po.o
elf_update.c: In function '_libelf_compute_section_extents':
elf_update.c:258:15: warning: implicit declaration of function 'roundup2' [-Wimplicit-function-declaration]
  258 |    scn_size = roundup2(scn_size, d->d_align);
      |               ^~~~~~~~
elf_update.c:317:14: warning: implicit declaration of function 'roundup' [-Wimplicit-function-declaration]
  317 |  sh_offset = roundup((uint64_t) rc, sh_align);
      |              ^~~~~~~
cc -O2    -MD -MF elf_version.d -MT elf_version.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c -pg -DGPROF -DPROF elf_version.c -o elf_version.po.o
cc -O2    -MD -MF gelf_cap.d -MT gelf_cap.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c -pg -DGPROF -DPROF gelf_cap.c -o gelf_cap.po.o
cc -O2    -MD -MF gelf_checksum.d -MT gelf_checksum.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c -pg -DGPROF -DPROF gelf_checksum.c -o gelf_checksum.po.o
cc -O2    -MD -MF gelf_dyn.d -MT gelf_dyn.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c -pg -DGPROF -DPROF gelf_dyn.c -o gelf_dyn.po.o
cc -O2    -MD -MF gelf_ehdr.d -MT gelf_ehdr.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c -pg -DGPROF -DPROF gelf_ehdr.c -o gelf_ehdr.po.o
cc -O2    -MD -MF gelf_getclass.d -MT gelf_getclass.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c -pg -DGPROF -DPROF gelf_getclass.c -o gelf_getclass.po.o
cc -O2    -MD -MF gelf_fsize.d -MT gelf_fsize.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c -pg -DGPROF -DPROF gelf_fsize.c -o gelf_fsize.po.o
cc -O2    -MD -MF gelf_move.d -MT gelf_move.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c -pg -DGPROF -DPROF gelf_move.c -o gelf_move.po.o
cc -O2    -MD -MF gelf_phdr.d -MT gelf_phdr.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c -pg -DGPROF -DPROF gelf_phdr.c -o gelf_phdr.po.o
cc -O2    -MD -MF gelf_rel.d -MT gelf_rel.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c -pg -DGPROF -DPROF gelf_rel.c -o gelf_rel.po.o
cc -O2    -MD -MF gelf_rela.d -MT gelf_rela.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c -pg -DGPROF -DPROF gelf_rela.c -o gelf_rela.po.o
cc -O2    -MD -MF gelf_shdr.d -MT gelf_shdr.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c -pg -DGPROF -DPROF gelf_shdr.c -o gelf_shdr.po.o
cc -O2    -MD -MF gelf_sym.d -MT gelf_sym.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c -pg -DGPROF -DPROF gelf_sym.c -o gelf_sym.po.o
cc -O2    -MD -MF gelf_syminfo.d -MT gelf_syminfo.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c -pg -DGPROF -DPROF gelf_syminfo.c -o gelf_syminfo.po.o
cc -O2    -MD -MF gelf_symshndx.d -MT gelf_symshndx.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c -pg -DGPROF -DPROF gelf_symshndx.c -o gelf_symshndx.po.o
cc -O2    -MD -MF gelf_xlate.d -MT gelf_xlate.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c -pg -DGPROF -DPROF gelf_xlate.c -o gelf_xlate.po.o
cc -O2    -MD -MF libelf_align.d -MT libelf_align.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c -pg -DGPROF -DPROF libelf_align.c -o libelf_align.po.o
cc -O2    -MD -MF libelf_allocate.d -MT libelf_allocate.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c -pg -DGPROF -DPROF libelf_allocate.c -o libelf_allocate.po.o
cc -O2    -MD -MF libelf_ar.d -MT libelf_ar.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c -pg -DGPROF -DPROF libelf_ar.c -o libelf_ar.po.o
cc -O2    -MD -MF libelf_ar_util.d -MT libelf_ar_util.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c -pg -DGPROF -DPROF libelf_ar_util.c -o libelf_ar_util.po.o
cc -O2    -MD -MF libelf_checksum.d -MT libelf_checksum.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c -pg -DGPROF -DPROF libelf_checksum.c -o libelf_checksum.po.o
cc -O2    -MD -MF libelf_data.d -MT libelf_data.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c -pg -DGPROF -DPROF libelf_data.c -o libelf_data.po.o
cc -O2    -MD -MF libelf_ehdr.d -MT libelf_ehdr.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c -pg -DGPROF -DPROF libelf_ehdr.c -o libelf_ehdr.po.o
cc -O2    -MD -MF libelf_elfmachine.d -MT libelf_elfmachine.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c -pg -DGPROF -DPROF libelf_elfmachine.c -o libelf_elfmachine.po.o
cc -O2    -MD -MF libelf_extended.d -MT libelf_extended.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c -pg -DGPROF -DPROF libelf_extended.c -o libelf_extended.po.o
cc -O2    -MD -MF libelf_memory.d -MT libelf_memory.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c -pg -DGPROF -DPROF libelf_memory.c -o libelf_memory.po.o
cc -O2    -MD -MF libelf_open.d -MT libelf_open.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c -pg -DGPROF -DPROF libelf_open.c -o libelf_open.po.o
libelf_open.c: In function '_libelf_open_object':
libelf_open.c:147:7: warning: implicit declaration of function 'S_ISSOCK' [-Wimplicit-function-declaration]
  147 |      !S_ISSOCK(mode)) {
      |       ^~~~~~~~
cc -O2    -MD -MF libelf_phdr.d -MT libelf_phdr.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c -pg -DGPROF -DPROF libelf_phdr.c -o libelf_phdr.po.o
cc -O2    -MD -MF libelf_shdr.d -MT libelf_shdr.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c -pg -DGPROF -DPROF libelf_shdr.c -o libelf_shdr.po.o
cc -O2    -MD -MF libelf_xlate.d -MT libelf_xlate.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c -pg -DGPROF -DPROF libelf_xlate.c -o libelf_xlate.po.o
cc -O2    -MD -MF libelf_fsize.d -MT libelf_fsize.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c -pg -DGPROF -DPROF libelf_fsize.c -o libelf_fsize.po.o
cc -O2    -MD -MF libelf_msize.d -MT libelf_msize.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c -pg -DGPROF -DPROF libelf_msize.c -o libelf_msize.po.o
cc -O2    -MD -MF libelf_convert.d -MT libelf_convert.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c -pg -DGPROF -DPROF libelf_convert.c -o libelf_convert.po.o
building profiled elf library
/mingw64/bin/ranlib libelf_p.a
cc -O2    -MD -MF elf.d -MT elf.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c -fpic -DPIC elf.c -o elf.pico.o
ld -x -r elf.pico.o -o elf.pico
cc -O2    -MD -MF elf_begin.d -MT elf_begin.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c -fpic -DPIC elf_begin.c -o elf_begin.pico.o
ld -x -r elf_begin.pico.o -o elf_begin.pico
cc -O2    -MD -MF elf_cntl.d -MT elf_cntl.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c -fpic -DPIC elf_cntl.c -o elf_cntl.pico.o
ld -x -r elf_cntl.pico.o -o elf_cntl.pico
cc -O2    -MD -MF elf_end.d -MT elf_end.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c -fpic -DPIC elf_end.c -o elf_end.pico.o
ld -x -r elf_end.pico.o -o elf_end.pico
cc -O2    -MD -MF elf_errmsg.d -MT elf_errmsg.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c -fpic -DPIC elf_errmsg.c -o elf_errmsg.pico.o
ld -x -r elf_errmsg.pico.o -o elf_errmsg.pico
cc -O2    -MD -MF elf_errno.d -MT elf_errno.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c -fpic -DPIC elf_errno.c -o elf_errno.pico.o
ld -x -r elf_errno.pico.o -o elf_errno.pico
cc -O2    -MD -MF elf_data.d -MT elf_data.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c -fpic -DPIC elf_data.c -o elf_data.pico.o
ld -x -r elf_data.pico.o -o elf_data.pico
cc -O2    -MD -MF elf_fill.d -MT elf_fill.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c -fpic -DPIC elf_fill.c -o elf_fill.pico.o
ld -x -r elf_fill.pico.o -o elf_fill.pico
cc -O2    -MD -MF elf_flag.d -MT elf_flag.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c -fpic -DPIC elf_flag.c -o elf_flag.pico.o
ld -x -r elf_flag.pico.o -o elf_flag.pico
cc -O2    -MD -MF elf_getarhdr.d -MT elf_getarhdr.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c -fpic -DPIC elf_getarhdr.c -o elf_getarhdr.pico.o
ld -x -r elf_getarhdr.pico.o -o elf_getarhdr.pico
cc -O2    -MD -MF elf_getarsym.d -MT elf_getarsym.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c -fpic -DPIC elf_getarsym.c -o elf_getarsym.pico.o
ld -x -r elf_getarsym.pico.o -o elf_getarsym.pico
cc -O2    -MD -MF elf_getbase.d -MT elf_getbase.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c -fpic -DPIC elf_getbase.c -o elf_getbase.pico.o
ld -x -r elf_getbase.pico.o -o elf_getbase.pico
cc -O2    -MD -MF elf_getident.d -MT elf_getident.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c -fpic -DPIC elf_getident.c -o elf_getident.pico.o
ld -x -r elf_getident.pico.o -o elf_getident.pico
cc -O2    -MD -MF elf_hash.d -MT elf_hash.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c -fpic -DPIC elf_hash.c -o elf_hash.pico.o
ld -x -r elf_hash.pico.o -o elf_hash.pico
cc -O2    -MD -MF elf_kind.d -MT elf_kind.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c -fpic -DPIC elf_kind.c -o elf_kind.pico.o
ld -x -r elf_kind.pico.o -o elf_kind.pico
cc -O2    -MD -MF elf_memory.d -MT elf_memory.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c -fpic -DPIC elf_memory.c -o elf_memory.pico.o
ld -x -r elf_memory.pico.o -o elf_memory.pico
cc -O2    -MD -MF elf_next.d -MT elf_next.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c -fpic -DPIC elf_next.c -o elf_next.pico.o
ld -x -r elf_next.pico.o -o elf_next.pico
cc -O2    -MD -MF elf_open.d -MT elf_open.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c -fpic -DPIC elf_open.c -o elf_open.pico.o
ld -x -r elf_open.pico.o -o elf_open.pico
cc -O2    -MD -MF elf_rand.d -MT elf_rand.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c -fpic -DPIC elf_rand.c -o elf_rand.pico.o
ld -x -r elf_rand.pico.o -o elf_rand.pico
cc -O2    -MD -MF elf_rawfile.d -MT elf_rawfile.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c -fpic -DPIC elf_rawfile.c -o elf_rawfile.pico.o
ld -x -r elf_rawfile.pico.o -o elf_rawfile.pico
cc -O2    -MD -MF elf_phnum.d -MT elf_phnum.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c -fpic -DPIC elf_phnum.c -o elf_phnum.pico.o
ld -x -r elf_phnum.pico.o -o elf_phnum.pico
cc -O2    -MD -MF elf_shnum.d -MT elf_shnum.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c -fpic -DPIC elf_shnum.c -o elf_shnum.pico.o
ld -x -r elf_shnum.pico.o -o elf_shnum.pico
cc -O2    -MD -MF elf_shstrndx.d -MT elf_shstrndx.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c -fpic -DPIC elf_shstrndx.c -o elf_shstrndx.pico.o
ld -x -r elf_shstrndx.pico.o -o elf_shstrndx.pico
cc -O2    -MD -MF elf_scn.d -MT elf_scn.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c -fpic -DPIC elf_scn.c -o elf_scn.pico.o
ld -x -r elf_scn.pico.o -o elf_scn.pico
cc -O2    -MD -MF elf_strptr.d -MT elf_strptr.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c -fpic -DPIC elf_strptr.c -o elf_strptr.pico.o
elf_strptr.c: In function 'elf_strptr':
elf_strptr.c:109:13: warning: implicit declaration of function 'roundup2' [-Wimplicit-function-declaration]
  109 |     count = roundup2(count, alignment);
      |             ^~~~~~~~
ld -x -r elf_strptr.pico.o -o elf_strptr.pico
cc -O2    -MD -MF elf_update.d -MT elf_update.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c -fpic -DPIC elf_update.c -o elf_update.pico.o
elf_update.c: In function '_libelf_compute_section_extents':
elf_update.c:258:15: warning: implicit declaration of function 'roundup2' [-Wimplicit-function-declaration]
  258 |    scn_size = roundup2(scn_size, d->d_align);
      |               ^~~~~~~~
elf_update.c:317:14: warning: implicit declaration of function 'roundup' [-Wimplicit-function-declaration]
  317 |  sh_offset = roundup((uint64_t) rc, sh_align);
      |              ^~~~~~~
ld -x -r elf_update.pico.o -o elf_update.pico
cc -O2    -MD -MF elf_version.d -MT elf_version.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c -fpic -DPIC elf_version.c -o elf_version.pico.o
ld -x -r elf_version.pico.o -o elf_version.pico
cc -O2    -MD -MF gelf_cap.d -MT gelf_cap.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c -fpic -DPIC gelf_cap.c -o gelf_cap.pico.o
ld -x -r gelf_cap.pico.o -o gelf_cap.pico
cc -O2    -MD -MF gelf_checksum.d -MT gelf_checksum.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c -fpic -DPIC gelf_checksum.c -o gelf_checksum.pico.o
ld -x -r gelf_checksum.pico.o -o gelf_checksum.pico
cc -O2    -MD -MF gelf_dyn.d -MT gelf_dyn.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c -fpic -DPIC gelf_dyn.c -o gelf_dyn.pico.o
ld -x -r gelf_dyn.pico.o -o gelf_dyn.pico
cc -O2    -MD -MF gelf_ehdr.d -MT gelf_ehdr.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c -fpic -DPIC gelf_ehdr.c -o gelf_ehdr.pico.o
ld -x -r gelf_ehdr.pico.o -o gelf_ehdr.pico
cc -O2    -MD -MF gelf_getclass.d -MT gelf_getclass.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c -fpic -DPIC gelf_getclass.c -o gelf_getclass.pico.o
ld -x -r gelf_getclass.pico.o -o gelf_getclass.pico
cc -O2    -MD -MF gelf_fsize.d -MT gelf_fsize.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c -fpic -DPIC gelf_fsize.c -o gelf_fsize.pico.o
ld -x -r gelf_fsize.pico.o -o gelf_fsize.pico
cc -O2    -MD -MF gelf_move.d -MT gelf_move.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c -fpic -DPIC gelf_move.c -o gelf_move.pico.o
ld -x -r gelf_move.pico.o -o gelf_move.pico
cc -O2    -MD -MF gelf_phdr.d -MT gelf_phdr.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c -fpic -DPIC gelf_phdr.c -o gelf_phdr.pico.o
ld -x -r gelf_phdr.pico.o -o gelf_phdr.pico
cc -O2    -MD -MF gelf_rel.d -MT gelf_rel.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c -fpic -DPIC gelf_rel.c -o gelf_rel.pico.o
ld -x -r gelf_rel.pico.o -o gelf_rel.pico
cc -O2    -MD -MF gelf_rela.d -MT gelf_rela.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c -fpic -DPIC gelf_rela.c -o gelf_rela.pico.o
ld -x -r gelf_rela.pico.o -o gelf_rela.pico
cc -O2    -MD -MF gelf_shdr.d -MT gelf_shdr.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c -fpic -DPIC gelf_shdr.c -o gelf_shdr.pico.o
ld -x -r gelf_shdr.pico.o -o gelf_shdr.pico
cc -O2    -MD -MF gelf_sym.d -MT gelf_sym.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c -fpic -DPIC gelf_sym.c -o gelf_sym.pico.o
ld -x -r gelf_sym.pico.o -o gelf_sym.pico
cc -O2    -MD -MF gelf_syminfo.d -MT gelf_syminfo.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c -fpic -DPIC gelf_syminfo.c -o gelf_syminfo.pico.o
ld -x -r gelf_syminfo.pico.o -o gelf_syminfo.pico
cc -O2    -MD -MF gelf_symshndx.d -MT gelf_symshndx.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c -fpic -DPIC gelf_symshndx.c -o gelf_symshndx.pico.o
ld -x -r gelf_symshndx.pico.o -o gelf_symshndx.pico
cc -O2    -MD -MF gelf_xlate.d -MT gelf_xlate.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c -fpic -DPIC gelf_xlate.c -o gelf_xlate.pico.o
ld -x -r gelf_xlate.pico.o -o gelf_xlate.pico
cc -O2    -MD -MF libelf_align.d -MT libelf_align.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c -fpic -DPIC libelf_align.c -o libelf_align.pico.o
ld -x -r libelf_align.pico.o -o libelf_align.pico
cc -O2    -MD -MF libelf_allocate.d -MT libelf_allocate.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c -fpic -DPIC libelf_allocate.c -o libelf_allocate.pico.o
ld -x -r libelf_allocate.pico.o -o libelf_allocate.pico
cc -O2    -MD -MF libelf_ar.d -MT libelf_ar.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c -fpic -DPIC libelf_ar.c -o libelf_ar.pico.o
ld -x -r libelf_ar.pico.o -o libelf_ar.pico
cc -O2    -MD -MF libelf_ar_util.d -MT libelf_ar_util.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c -fpic -DPIC libelf_ar_util.c -o libelf_ar_util.pico.o
ld -x -r libelf_ar_util.pico.o -o libelf_ar_util.pico
cc -O2    -MD -MF libelf_checksum.d -MT libelf_checksum.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c -fpic -DPIC libelf_checksum.c -o libelf_checksum.pico.o
ld -x -r libelf_checksum.pico.o -o libelf_checksum.pico
cc -O2    -MD -MF libelf_data.d -MT libelf_data.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c -fpic -DPIC libelf_data.c -o libelf_data.pico.o
ld -x -r libelf_data.pico.o -o libelf_data.pico
cc -O2    -MD -MF libelf_ehdr.d -MT libelf_ehdr.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c -fpic -DPIC libelf_ehdr.c -o libelf_ehdr.pico.o
ld -x -r libelf_ehdr.pico.o -o libelf_ehdr.pico
cc -O2    -MD -MF libelf_elfmachine.d -MT libelf_elfmachine.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c -fpic -DPIC libelf_elfmachine.c -o libelf_elfmachine.pico.o
ld -x -r libelf_elfmachine.pico.o -o libelf_elfmachine.pico
cc -O2    -MD -MF libelf_extended.d -MT libelf_extended.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c -fpic -DPIC libelf_extended.c -o libelf_extended.pico.o
ld -x -r libelf_extended.pico.o -o libelf_extended.pico
cc -O2    -MD -MF libelf_memory.d -MT libelf_memory.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c -fpic -DPIC libelf_memory.c -o libelf_memory.pico.o
ld -x -r libelf_memory.pico.o -o libelf_memory.pico
cc -O2    -MD -MF libelf_open.d -MT libelf_open.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c -fpic -DPIC libelf_open.c -o libelf_open.pico.o
libelf_open.c: In function '_libelf_open_object':
libelf_open.c:147:7: warning: implicit declaration of function 'S_ISSOCK' [-Wimplicit-function-declaration]
  147 |      !S_ISSOCK(mode)) {
      |       ^~~~~~~~
ld -x -r libelf_open.pico.o -o libelf_open.pico
cc -O2    -MD -MF libelf_phdr.d -MT libelf_phdr.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c -fpic -DPIC libelf_phdr.c -o libelf_phdr.pico.o
ld -x -r libelf_phdr.pico.o -o libelf_phdr.pico
cc -O2    -MD -MF libelf_shdr.d -MT libelf_shdr.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c -fpic -DPIC libelf_shdr.c -o libelf_shdr.pico.o
ld -x -r libelf_shdr.pico.o -o libelf_shdr.pico
cc -O2    -MD -MF libelf_xlate.d -MT libelf_xlate.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c -fpic -DPIC libelf_xlate.c -o libelf_xlate.pico.o
ld -x -r libelf_xlate.pico.o -o libelf_xlate.pico
cc -O2    -MD -MF libelf_fsize.d -MT libelf_fsize.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c -fpic -DPIC libelf_fsize.c -o libelf_fsize.pico.o
ld -x -r libelf_fsize.pico.o -o libelf_fsize.pico
cc -O2    -MD -MF libelf_msize.d -MT libelf_msize.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c -fpic -DPIC libelf_msize.c -o libelf_msize.pico.o
ld -x -r libelf_msize.pico.o -o libelf_msize.pico
cc -O2    -MD -MF libelf_convert.d -MT libelf_convert.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64     -c -fpic -DPIC libelf_convert.c -o libelf_convert.pico.o
ld -x -r libelf_convert.pico.o -o libelf_convert.pico
building shared object elf library
C:\msys64\mingw64\bin\ar.exe: elf_begin.pico: warning: no symbol for section '.refptr._libelf' found
C:\msys64\mingw64\bin\ar.exe: elf_cntl.pico: warning: no symbol for section '.refptr._libelf' found
C:\msys64\mingw64\bin\ar.exe: elf_errmsg.pico: warning: no symbol for section '.refptr._libelf' found
C:\msys64\mingw64\bin\ar.exe: elf_errno.pico: warning: no symbol for section '.refptr._libelf' found
C:\msys64\mingw64\bin\ar.exe: elf_data.pico: warning: no symbol for section '.refptr.elf32_fsize' found
C:\msys64\mingw64\bin\ar.exe: elf_fill.pico: warning: no symbol for section '.refptr._libelf' found
C:\msys64\mingw64\bin\ar.exe: elf_flag.pico: warning: no symbol for section '.refptr._libelf' found
C:\msys64\mingw64\bin\ar.exe: elf_getarsym.pico: warning: no symbol for section '.refptr._libelf' found
C:\msys64\mingw64\bin\ar.exe: elf_getbase.pico: warning: no symbol for section '.refptr._libelf' found
C:\msys64\mingw64\bin\ar.exe: elf_getident.pico: warning: no symbol for section '.refptr._libelf' found
C:\msys64\mingw64\bin\ar.exe: elf_memory.pico: warning: no symbol for section '.refptr._libelf' found
C:\msys64\mingw64\bin\ar.exe: elf_next.pico: warning: no symbol for section '.refptr._libelf' found
C:\msys64\mingw64\bin\ar.exe: elf_open.pico: warning: no symbol for section '.refptr._libelf' found
C:\msys64\mingw64\bin\ar.exe: elf_rand.pico: warning: no symbol for section '.refptr._libelf' found
C:\msys64\mingw64\bin\ar.exe: elf_rawfile.pico: warning: no symbol for section '.refptr._libelf' found
C:\msys64\mingw64\bin\ar.exe: elf_phnum.pico: warning: no symbol for section '.refptr._libelf' found
C:\msys64\mingw64\bin\ar.exe: elf_shnum.pico: warning: no symbol for section '.refptr._libelf' found
C:\msys64\mingw64\bin\ar.exe: elf_shstrndx.pico: warning: no symbol for section '.refptr._libelf' found
C:\msys64\mingw64\bin\ar.exe: elf_version.pico: warning: no symbol for section '.refptr._libelf' found
C:\msys64\mingw64\bin\ar.exe: gelf_fsize.pico: warning: no symbol for section '.refptr._libelf' found
C:\msys64\mingw64\bin\ar.exe: gelf_shdr.pico: warning: no symbol for section '.refptr._libelf' found
C:\msys64\mingw64\bin\ar.exe: libelf_ar_util.pico: warning: no symbol for section '.refptr._libelf' found
C:\msys64\mingw64\bin\ar.exe: libelf_memory.pico: warning: no symbol for section '.refptr._libelf' found
C:\msys64\mingw64\bin\ar.exe: libelf_shdr.pico: warning: no symbol for section '.refptr._libelf' found
C:\msys64\mingw64\bin\ar.exe: libelf_xlate.pico: warning: no symbol for section '.refptr.elf32_fsize' found
C:\msys64\mingw64\bin\ar.exe: libelf_fsize.pico: warning: no symbol for section '.refptr._libelf' found
C:\msys64\mingw64\bin\ar.exe: libelf_msize.pico: warning: no symbol for section '.refptr._libelf' found
/mingw64/bin/ranlib libelf_pic.a
C:\msys64\mingw64\bin\ranlib.exe: libelf_pic.a(elf_begin.pico): warning: no symbol for section '.refptr._libelf' found
C:\msys64\mingw64\bin\ranlib.exe: libelf_pic.a(elf_cntl.pico): warning: no symbol for section '.refptr._libelf' found
C:\msys64\mingw64\bin\ranlib.exe: libelf_pic.a(elf_errmsg.pico): warning: no symbol for section '.refptr._libelf' found
C:\msys64\mingw64\bin\ranlib.exe: libelf_pic.a(elf_errno.pico): warning: no symbol for section '.refptr._libelf' found
C:\msys64\mingw64\bin\ranlib.exe: libelf_pic.a(elf_data.pico): warning: no symbol for section '.refptr.elf32_fsize' found
C:\msys64\mingw64\bin\ranlib.exe: libelf_pic.a(elf_fill.pico): warning: no symbol for section '.refptr._libelf' found
C:\msys64\mingw64\bin\ranlib.exe: libelf_pic.a(elf_flag.pico): warning: no symbol for section '.refptr._libelf' found
C:\msys64\mingw64\bin\ranlib.exe: libelf_pic.a(elf_getarsym.pico): warning: no symbol for section '.refptr._libelf' found
C:\msys64\mingw64\bin\ranlib.exe: libelf_pic.a(elf_getbase.pico): warning: no symbol for section '.refptr._libelf' found
C:\msys64\mingw64\bin\ranlib.exe: libelf_pic.a(elf_getident.pico): warning: no symbol for section '.refptr._libelf' found
C:\msys64\mingw64\bin\ranlib.exe: libelf_pic.a(elf_memory.pico): warning: no symbol for section '.refptr._libelf' found
C:\msys64\mingw64\bin\ranlib.exe: libelf_pic.a(elf_next.pico): warning: no symbol for section '.refptr._libelf' found
C:\msys64\mingw64\bin\ranlib.exe: libelf_pic.a(elf_open.pico): warning: no symbol for section '.refptr._libelf' found
C:\msys64\mingw64\bin\ranlib.exe: libelf_pic.a(elf_rand.pico): warning: no symbol for section '.refptr._libelf' found
C:\msys64\mingw64\bin\ranlib.exe: libelf_pic.a(elf_rawfile.pico): warning: no symbol for section '.refptr._libelf' found
C:\msys64\mingw64\bin\ranlib.exe: libelf_pic.a(elf_phnum.pico): warning: no symbol for section '.refptr._libelf' found
C:\msys64\mingw64\bin\ranlib.exe: libelf_pic.a(elf_shnum.pico): warning: no symbol for section '.refptr._libelf' found
C:\msys64\mingw64\bin\ranlib.exe: libelf_pic.a(elf_shstrndx.pico): warning: no symbol for section '.refptr._libelf' found
C:\msys64\mingw64\bin\ranlib.exe: libelf_pic.a(elf_version.pico): warning: no symbol for section '.refptr._libelf' found
C:\msys64\mingw64\bin\ranlib.exe: libelf_pic.a(gelf_fsize.pico): warning: no symbol for section '.refptr._libelf' found
C:\msys64\mingw64\bin\ranlib.exe: libelf_pic.a(gelf_shdr.pico): warning: no symbol for section '.refptr._libelf' found
C:\msys64\mingw64\bin\ranlib.exe: libelf_pic.a(libelf_ar_util.pico): warning: no symbol for section '.refptr._libelf' found
C:\msys64\mingw64\bin\ranlib.exe: libelf_pic.a(libelf_memory.pico): warning: no symbol for section '.refptr._libelf' found
C:\msys64\mingw64\bin\ranlib.exe: libelf_pic.a(libelf_shdr.pico): warning: no symbol for section '.refptr._libelf' found
C:\msys64\mingw64\bin\ranlib.exe: libelf_pic.a(libelf_xlate.pico): warning: no symbol for section '.refptr.elf32_fsize' found
C:\msys64\mingw64\bin\ranlib.exe: libelf_pic.a(libelf_fsize.pico): warning: no symbol for section '.refptr._libelf' found
C:\msys64\mingw64\bin\ranlib.exe: libelf_pic.a(libelf_msize.pico): warning: no symbol for section '.refptr._libelf' found
building shared elf library (version 1)
ld -o libelf.so.1 -Bshareable -Bforcearchive elf.pico elf_begin.pico elf_cntl.pico elf_end.pico elf_errmsg.pico elf_errno.pico elf_data.pico elf_fill.pico elf_flag.pico elf_getarhdr.pico elf_getarsym.pico elf_getbase.pico elf_getident.pico elf_hash.pico elf_kind.pico elf_memory.pico elf_next.pico elf_open.pico elf_rand.pico elf_rawfile.pico elf_phnum.pico elf_shnum.pico elf_shstrndx.pico elf_scn.pico elf_strptr.pico elf_update.pico elf_version.pico gelf_cap.pico gelf_checksum.pico gelf_dyn.pico gelf_ehdr.pico gelf_getclass.pico gelf_fsize.pico gelf_move.pico gelf_phdr.pico gelf_rel.pico gelf_rela.pico gelf_shdr.pico gelf_sym.pico gelf_syminfo.pico gelf_symshndx.pico gelf_xlate.pico libelf_align.pico libelf_allocate.pico libelf_ar.pico libelf_ar_util.pico libelf_checksum.pico libelf_data.pico libelf_ehdr.pico libelf_elfmachine.pico libelf_extended.pico libelf_memory.pico libelf_open.pico libelf_phdr.pico libelf_shdr.pico libelf_xlate.pico libelf_fsize.pico libelf_msize.pico libelf_convert.pico
C:\msys64\mingw64\bin\ld.exe: эхшчтхёЄэ√щ ярЁрьхЄЁ л-Bforcearchive╗
C:\msys64\mingw64\bin\ld.exe: шёяюы№чєщЄх --help фы  яюыєўхэш  шэЇюЁьрЎшш ю ярЁрьхЄЁрї
*** Error code 1

Stop.
bmake.exe[1]: stopped in C:/msys64/home/ofry/elftoolchain-githubfork/libelf
*** Error code 1

Stop.
bmake.exe[1]: stopped in C:/msys64/home/ofry/elftoolchain-githubfork

@umarcor
Copy link
Contributor

umarcor commented Jul 22, 2020

This might be a silly question, but... why is the ELF toolchain required on Windows, if windows executables or DLLs do not have an ELF format? It feels to me that you are trying to build DynamoRIO as a "Linux tool" inside MINGW, which is NOT correct. Inside MINGW, you generate Windows binaries/libs. The last reference to Cygwin implies that you might be going the MSYS way. Still, I think it might not work.

So, I think that the main question is: what type of executables do you want your DynamoRIO build to analyze? If you want to analyze ELF binaries on Windows, I strongly suggest to try Docker or WSL, instead of MSYS2. For example, some of the images in dbhi/docker include DynamoRIO on Ubuntu Bionic containers.

@derekbruening
Copy link

This might be a silly question, but... why is the ELF toolchain required on Windows, if windows executables or DLLs do not have an ELF format?

It's not about the ELF part of libelftc: that is not needed on Windows. What is needed is the libdwarf (DWARF parsing) and libelftc (C++ demangling) components of libelftc. MINGW and Cygwin binaries typically have DWARF debug information, not PDB-format debug info.

@ofry
Copy link
Contributor Author

ofry commented Jul 26, 2020

Related PR to fix this: #6719

@ofry
Copy link
Contributor Author

ofry commented Aug 2, 2020

@derekbruening Are you know how to fix this and what's problem?

ofry@games MINGW64 ~/elftoolchain-githubfork
$ LANG=en bmake -B -m /mingw64/share/mk
===> common
===> libelf
gcc -pipe -O -g    -MD -MF elf.d -MT elf.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c elf.c
gcc -pipe -O -g    -MD -MF elf_begin.d -MT elf_begin.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c elf_begin.c
gcc -pipe -O -g    -MD -MF elf_cntl.d -MT elf_cntl.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c elf_cntl.c
gcc -pipe -O -g    -MD -MF elf_end.d -MT elf_end.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c elf_end.c
gcc -pipe -O -g    -MD -MF elf_errmsg.d -MT elf_errmsg.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c elf_errmsg.c
gcc -pipe -O -g    -MD -MF elf_errno.d -MT elf_errno.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c elf_errno.c
gcc -pipe -O -g    -MD -MF elf_data.d -MT elf_data.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c elf_data.c
gcc -pipe -O -g    -MD -MF elf_fill.d -MT elf_fill.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c elf_fill.c
gcc -pipe -O -g    -MD -MF elf_flag.d -MT elf_flag.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c elf_flag.c
gcc -pipe -O -g    -MD -MF elf_getarhdr.d -MT elf_getarhdr.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c elf_getarhdr.c
gcc -pipe -O -g    -MD -MF elf_getarsym.d -MT elf_getarsym.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c elf_getarsym.c
gcc -pipe -O -g    -MD -MF elf_getbase.d -MT elf_getbase.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c elf_getbase.c
gcc -pipe -O -g    -MD -MF elf_getident.d -MT elf_getident.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c elf_getident.c
gcc -pipe -O -g    -MD -MF elf_hash.d -MT elf_hash.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c elf_hash.c
gcc -pipe -O -g    -MD -MF elf_kind.d -MT elf_kind.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c elf_kind.c
gcc -pipe -O -g    -MD -MF elf_memory.d -MT elf_memory.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c elf_memory.c
gcc -pipe -O -g    -MD -MF elf_next.d -MT elf_next.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c elf_next.c
gcc -pipe -O -g    -MD -MF elf_open.d -MT elf_open.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c elf_open.c
gcc -pipe -O -g    -MD -MF elf_rand.d -MT elf_rand.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c elf_rand.c
gcc -pipe -O -g    -MD -MF elf_rawfile.d -MT elf_rawfile.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c elf_rawfile.c
gcc -pipe -O -g    -MD -MF elf_phnum.d -MT elf_phnum.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c elf_phnum.c
gcc -pipe -O -g    -MD -MF elf_shnum.d -MT elf_shnum.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c elf_shnum.c
gcc -pipe -O -g    -MD -MF elf_shstrndx.d -MT elf_shstrndx.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c elf_shstrndx.c
gcc -pipe -O -g    -MD -MF elf_scn.d -MT elf_scn.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c elf_scn.c
gcc -pipe -O -g    -MD -MF elf_strptr.d -MT elf_strptr.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c elf_strptr.c
elf_strptr.c: In function 'elf_strptr':
elf_strptr.c:109:13: warning: implicit declaration of function 'roundup2' [-Wimplicit-function-declaration]
  109 |     count = roundup2(count, alignment);
      |             ^~~~~~~~
gcc -pipe -O -g    -MD -MF elf_update.d -MT elf_update.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c elf_update.c
elf_update.c: In function '_libelf_compute_section_extents':
elf_update.c:258:15: warning: implicit declaration of function 'roundup2' [-Wimplicit-function-declaration]
  258 |    scn_size = roundup2(scn_size, d->d_align);
      |               ^~~~~~~~
elf_update.c:317:14: warning: implicit declaration of function 'roundup' [-Wimplicit-function-declaration]
  317 |  sh_offset = roundup((uint64_t) rc, sh_align);
      |              ^~~~~~~
gcc -pipe -O -g    -MD -MF elf_version.d -MT elf_version.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c elf_version.c
gcc -pipe -O -g    -MD -MF gelf_cap.d -MT gelf_cap.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c gelf_cap.c
gcc -pipe -O -g    -MD -MF gelf_checksum.d -MT gelf_checksum.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c gelf_checksum.c
gcc -pipe -O -g    -MD -MF gelf_dyn.d -MT gelf_dyn.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c gelf_dyn.c
gcc -pipe -O -g    -MD -MF gelf_ehdr.d -MT gelf_ehdr.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c gelf_ehdr.c
gcc -pipe -O -g    -MD -MF gelf_getclass.d -MT gelf_getclass.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c gelf_getclass.c
gcc -pipe -O -g    -MD -MF gelf_fsize.d -MT gelf_fsize.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c gelf_fsize.c
gcc -pipe -O -g    -MD -MF gelf_move.d -MT gelf_move.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c gelf_move.c
gcc -pipe -O -g    -MD -MF gelf_phdr.d -MT gelf_phdr.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c gelf_phdr.c
gcc -pipe -O -g    -MD -MF gelf_rel.d -MT gelf_rel.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c gelf_rel.c
gcc -pipe -O -g    -MD -MF gelf_rela.d -MT gelf_rela.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c gelf_rela.c
gcc -pipe -O -g    -MD -MF gelf_shdr.d -MT gelf_shdr.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c gelf_shdr.c
gcc -pipe -O -g    -MD -MF gelf_sym.d -MT gelf_sym.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c gelf_sym.c
gcc -pipe -O -g    -MD -MF gelf_syminfo.d -MT gelf_syminfo.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c gelf_syminfo.c
gcc -pipe -O -g    -MD -MF gelf_symshndx.d -MT gelf_symshndx.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c gelf_symshndx.c
gcc -pipe -O -g    -MD -MF gelf_xlate.d -MT gelf_xlate.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c gelf_xlate.c
gcc -pipe -O -g    -MD -MF libelf_align.d -MT libelf_align.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c libelf_align.c
gcc -pipe -O -g    -MD -MF libelf_allocate.d -MT libelf_allocate.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c libelf_allocate.c
gcc -pipe -O -g    -MD -MF libelf_ar.d -MT libelf_ar.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c libelf_ar.c
gcc -pipe -O -g    -MD -MF libelf_ar_util.d -MT libelf_ar_util.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c libelf_ar_util.c
gcc -pipe -O -g    -MD -MF libelf_checksum.d -MT libelf_checksum.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c libelf_checksum.c
gcc -pipe -O -g    -MD -MF libelf_data.d -MT libelf_data.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c libelf_data.c
gcc -pipe -O -g    -MD -MF libelf_ehdr.d -MT libelf_ehdr.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c libelf_ehdr.c
gcc -pipe -O -g    -MD -MF libelf_elfmachine.d -MT libelf_elfmachine.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c libelf_elfmachine.c
gcc -pipe -O -g    -MD -MF libelf_extended.d -MT libelf_extended.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c libelf_extended.c
gcc -pipe -O -g    -MD -MF libelf_memory.d -MT libelf_memory.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c libelf_memory.c
gcc -pipe -O -g    -MD -MF libelf_open.d -MT libelf_open.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c libelf_open.c
libelf_open.c: In function '_libelf_open_object':
libelf_open.c:147:7: warning: implicit declaration of function 'S_ISSOCK' [-Wimplicit-function-declaration]
  147 |      !S_ISSOCK(mode)) {
      |       ^~~~~~~~
gcc -pipe -O -g    -MD -MF libelf_phdr.d -MT libelf_phdr.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c libelf_phdr.c
gcc -pipe -O -g    -MD -MF libelf_shdr.d -MT libelf_shdr.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c libelf_shdr.c
gcc -pipe -O -g    -MD -MF libelf_xlate.d -MT libelf_xlate.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c libelf_xlate.c
m4 -D SRCDIR=/home/ofry/elftoolchain-githubfork/libelf  libelf_fsize.m4 > libelf_fsize.c
gcc -pipe -O -g    -MD -MF libelf_fsize.d -MT libelf_fsize.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c libelf_fsize.c
m4 -D SRCDIR=/home/ofry/elftoolchain-githubfork/libelf  libelf_msize.m4 > libelf_msize.c
gcc -pipe -O -g    -MD -MF libelf_msize.d -MT libelf_msize.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c libelf_msize.c
m4 -D SRCDIR=/home/ofry/elftoolchain-githubfork/libelf  libelf_convert.m4 > libelf_convert.c
gcc -pipe -O -g    -MD -MF libelf_convert.d -MT libelf_convert.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c libelf_convert.c
building standard elf library
ranlib libelf.a
gcc -pipe -O -g    -MD -MF elf.d -MT elf.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF elf.c -o elf.po.o
gcc -pipe -O -g    -MD -MF elf_begin.d -MT elf_begin.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF elf_begin.c -o elf_begin.po.o
gcc -pipe -O -g    -MD -MF elf_cntl.d -MT elf_cntl.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF elf_cntl.c -o elf_cntl.po.o
gcc -pipe -O -g    -MD -MF elf_end.d -MT elf_end.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF elf_end.c -o elf_end.po.o
gcc -pipe -O -g    -MD -MF elf_errmsg.d -MT elf_errmsg.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF elf_errmsg.c -o elf_errmsg.po.o
gcc -pipe -O -g    -MD -MF elf_errno.d -MT elf_errno.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF elf_errno.c -o elf_errno.po.o
gcc -pipe -O -g    -MD -MF elf_data.d -MT elf_data.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF elf_data.c -o elf_data.po.o
gcc -pipe -O -g    -MD -MF elf_fill.d -MT elf_fill.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF elf_fill.c -o elf_fill.po.o
gcc -pipe -O -g    -MD -MF elf_flag.d -MT elf_flag.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF elf_flag.c -o elf_flag.po.o
gcc -pipe -O -g    -MD -MF elf_getarhdr.d -MT elf_getarhdr.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF elf_getarhdr.c -o elf_getarhdr.po.o
gcc -pipe -O -g    -MD -MF elf_getarsym.d -MT elf_getarsym.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF elf_getarsym.c -o elf_getarsym.po.o
gcc -pipe -O -g    -MD -MF elf_getbase.d -MT elf_getbase.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF elf_getbase.c -o elf_getbase.po.o
gcc -pipe -O -g    -MD -MF elf_getident.d -MT elf_getident.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF elf_getident.c -o elf_getident.po.o
gcc -pipe -O -g    -MD -MF elf_hash.d -MT elf_hash.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF elf_hash.c -o elf_hash.po.o
gcc -pipe -O -g    -MD -MF elf_kind.d -MT elf_kind.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF elf_kind.c -o elf_kind.po.o
gcc -pipe -O -g    -MD -MF elf_memory.d -MT elf_memory.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF elf_memory.c -o elf_memory.po.o
gcc -pipe -O -g    -MD -MF elf_next.d -MT elf_next.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF elf_next.c -o elf_next.po.o
gcc -pipe -O -g    -MD -MF elf_open.d -MT elf_open.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF elf_open.c -o elf_open.po.o
gcc -pipe -O -g    -MD -MF elf_rand.d -MT elf_rand.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF elf_rand.c -o elf_rand.po.o
gcc -pipe -O -g    -MD -MF elf_rawfile.d -MT elf_rawfile.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF elf_rawfile.c -o elf_rawfile.po.o
gcc -pipe -O -g    -MD -MF elf_phnum.d -MT elf_phnum.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF elf_phnum.c -o elf_phnum.po.o
gcc -pipe -O -g    -MD -MF elf_shnum.d -MT elf_shnum.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF elf_shnum.c -o elf_shnum.po.o
gcc -pipe -O -g    -MD -MF elf_shstrndx.d -MT elf_shstrndx.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF elf_shstrndx.c -o elf_shstrndx.po.o
gcc -pipe -O -g    -MD -MF elf_scn.d -MT elf_scn.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF elf_scn.c -o elf_scn.po.o
gcc -pipe -O -g    -MD -MF elf_strptr.d -MT elf_strptr.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF elf_strptr.c -o elf_strptr.po.o
elf_strptr.c: In function 'elf_strptr':
elf_strptr.c:109:13: warning: implicit declaration of function 'roundup2' [-Wimplicit-function-declaration]
  109 |     count = roundup2(count, alignment);
      |             ^~~~~~~~
gcc -pipe -O -g    -MD -MF elf_update.d -MT elf_update.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF elf_update.c -o elf_update.po.o
elf_update.c: In function '_libelf_compute_section_extents':
elf_update.c:258:15: warning: implicit declaration of function 'roundup2' [-Wimplicit-function-declaration]
  258 |    scn_size = roundup2(scn_size, d->d_align);
      |               ^~~~~~~~
elf_update.c:317:14: warning: implicit declaration of function 'roundup' [-Wimplicit-function-declaration]
  317 |  sh_offset = roundup((uint64_t) rc, sh_align);
      |              ^~~~~~~
gcc -pipe -O -g    -MD -MF elf_version.d -MT elf_version.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF elf_version.c -o elf_version.po.o
gcc -pipe -O -g    -MD -MF gelf_cap.d -MT gelf_cap.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF gelf_cap.c -o gelf_cap.po.o
gcc -pipe -O -g    -MD -MF gelf_checksum.d -MT gelf_checksum.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF gelf_checksum.c -o gelf_checksum.po.o
gcc -pipe -O -g    -MD -MF gelf_dyn.d -MT gelf_dyn.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF gelf_dyn.c -o gelf_dyn.po.o
gcc -pipe -O -g    -MD -MF gelf_ehdr.d -MT gelf_ehdr.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF gelf_ehdr.c -o gelf_ehdr.po.o
gcc -pipe -O -g    -MD -MF gelf_getclass.d -MT gelf_getclass.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF gelf_getclass.c -o gelf_getclass.po.o
gcc -pipe -O -g    -MD -MF gelf_fsize.d -MT gelf_fsize.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF gelf_fsize.c -o gelf_fsize.po.o
gcc -pipe -O -g    -MD -MF gelf_move.d -MT gelf_move.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF gelf_move.c -o gelf_move.po.o
gcc -pipe -O -g    -MD -MF gelf_phdr.d -MT gelf_phdr.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF gelf_phdr.c -o gelf_phdr.po.o
gcc -pipe -O -g    -MD -MF gelf_rel.d -MT gelf_rel.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF gelf_rel.c -o gelf_rel.po.o
gcc -pipe -O -g    -MD -MF gelf_rela.d -MT gelf_rela.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF gelf_rela.c -o gelf_rela.po.o
gcc -pipe -O -g    -MD -MF gelf_shdr.d -MT gelf_shdr.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF gelf_shdr.c -o gelf_shdr.po.o
gcc -pipe -O -g    -MD -MF gelf_sym.d -MT gelf_sym.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF gelf_sym.c -o gelf_sym.po.o
gcc -pipe -O -g    -MD -MF gelf_syminfo.d -MT gelf_syminfo.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF gelf_syminfo.c -o gelf_syminfo.po.o
gcc -pipe -O -g    -MD -MF gelf_symshndx.d -MT gelf_symshndx.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF gelf_symshndx.c -o gelf_symshndx.po.o
gcc -pipe -O -g    -MD -MF gelf_xlate.d -MT gelf_xlate.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF gelf_xlate.c -o gelf_xlate.po.o
gcc -pipe -O -g    -MD -MF libelf_align.d -MT libelf_align.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF libelf_align.c -o libelf_align.po.o
gcc -pipe -O -g    -MD -MF libelf_allocate.d -MT libelf_allocate.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF libelf_allocate.c -o libelf_allocate.po.o
gcc -pipe -O -g    -MD -MF libelf_ar.d -MT libelf_ar.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF libelf_ar.c -o libelf_ar.po.o
gcc -pipe -O -g    -MD -MF libelf_ar_util.d -MT libelf_ar_util.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF libelf_ar_util.c -o libelf_ar_util.po.o
gcc -pipe -O -g    -MD -MF libelf_checksum.d -MT libelf_checksum.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF libelf_checksum.c -o libelf_checksum.po.o
gcc -pipe -O -g    -MD -MF libelf_data.d -MT libelf_data.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF libelf_data.c -o libelf_data.po.o
gcc -pipe -O -g    -MD -MF libelf_ehdr.d -MT libelf_ehdr.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF libelf_ehdr.c -o libelf_ehdr.po.o
gcc -pipe -O -g    -MD -MF libelf_elfmachine.d -MT libelf_elfmachine.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF libelf_elfmachine.c -o libelf_elfmachine.po.o
gcc -pipe -O -g    -MD -MF libelf_extended.d -MT libelf_extended.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF libelf_extended.c -o libelf_extended.po.o
gcc -pipe -O -g    -MD -MF libelf_memory.d -MT libelf_memory.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF libelf_memory.c -o libelf_memory.po.o
gcc -pipe -O -g    -MD -MF libelf_open.d -MT libelf_open.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF libelf_open.c -o libelf_open.po.o
libelf_open.c: In function '_libelf_open_object':
libelf_open.c:147:7: warning: implicit declaration of function 'S_ISSOCK' [-Wimplicit-function-declaration]
  147 |      !S_ISSOCK(mode)) {
      |       ^~~~~~~~
gcc -pipe -O -g    -MD -MF libelf_phdr.d -MT libelf_phdr.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF libelf_phdr.c -o libelf_phdr.po.o
gcc -pipe -O -g    -MD -MF libelf_shdr.d -MT libelf_shdr.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF libelf_shdr.c -o libelf_shdr.po.o
gcc -pipe -O -g    -MD -MF libelf_xlate.d -MT libelf_xlate.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF libelf_xlate.c -o libelf_xlate.po.o
gcc -pipe -O -g    -MD -MF libelf_fsize.d -MT libelf_fsize.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF libelf_fsize.c -o libelf_fsize.po.o
gcc -pipe -O -g    -MD -MF libelf_msize.d -MT libelf_msize.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF libelf_msize.c -o libelf_msize.po.o
gcc -pipe -O -g    -MD -MF libelf_convert.d -MT libelf_convert.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF libelf_convert.c -o libelf_convert.po.o
building profiled elf library
ranlib libelf_p.a
gcc -pipe -O -g    -MD -MF elf.d -MT elf.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC elf.c -o elf.pico.o
ld -x -r elf.pico.o -o elf.pico
gcc -pipe -O -g    -MD -MF elf_begin.d -MT elf_begin.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC elf_begin.c -o elf_begin.pico.o
ld -x -r elf_begin.pico.o -o elf_begin.pico
gcc -pipe -O -g    -MD -MF elf_cntl.d -MT elf_cntl.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC elf_cntl.c -o elf_cntl.pico.o
ld -x -r elf_cntl.pico.o -o elf_cntl.pico
gcc -pipe -O -g    -MD -MF elf_end.d -MT elf_end.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC elf_end.c -o elf_end.pico.o
ld -x -r elf_end.pico.o -o elf_end.pico
gcc -pipe -O -g    -MD -MF elf_errmsg.d -MT elf_errmsg.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC elf_errmsg.c -o elf_errmsg.pico.o
ld -x -r elf_errmsg.pico.o -o elf_errmsg.pico
gcc -pipe -O -g    -MD -MF elf_errno.d -MT elf_errno.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC elf_errno.c -o elf_errno.pico.o
ld -x -r elf_errno.pico.o -o elf_errno.pico
gcc -pipe -O -g    -MD -MF elf_data.d -MT elf_data.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC elf_data.c -o elf_data.pico.o
ld -x -r elf_data.pico.o -o elf_data.pico
gcc -pipe -O -g    -MD -MF elf_fill.d -MT elf_fill.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC elf_fill.c -o elf_fill.pico.o
ld -x -r elf_fill.pico.o -o elf_fill.pico
gcc -pipe -O -g    -MD -MF elf_flag.d -MT elf_flag.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC elf_flag.c -o elf_flag.pico.o
ld -x -r elf_flag.pico.o -o elf_flag.pico
gcc -pipe -O -g    -MD -MF elf_getarhdr.d -MT elf_getarhdr.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC elf_getarhdr.c -o elf_getarhdr.pico.o
ld -x -r elf_getarhdr.pico.o -o elf_getarhdr.pico
gcc -pipe -O -g    -MD -MF elf_getarsym.d -MT elf_getarsym.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC elf_getarsym.c -o elf_getarsym.pico.o
ld -x -r elf_getarsym.pico.o -o elf_getarsym.pico
gcc -pipe -O -g    -MD -MF elf_getbase.d -MT elf_getbase.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC elf_getbase.c -o elf_getbase.pico.o
ld -x -r elf_getbase.pico.o -o elf_getbase.pico
gcc -pipe -O -g    -MD -MF elf_getident.d -MT elf_getident.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC elf_getident.c -o elf_getident.pico.o
ld -x -r elf_getident.pico.o -o elf_getident.pico
gcc -pipe -O -g    -MD -MF elf_hash.d -MT elf_hash.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC elf_hash.c -o elf_hash.pico.o
ld -x -r elf_hash.pico.o -o elf_hash.pico
gcc -pipe -O -g    -MD -MF elf_kind.d -MT elf_kind.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC elf_kind.c -o elf_kind.pico.o
ld -x -r elf_kind.pico.o -o elf_kind.pico
gcc -pipe -O -g    -MD -MF elf_memory.d -MT elf_memory.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC elf_memory.c -o elf_memory.pico.o
ld -x -r elf_memory.pico.o -o elf_memory.pico
gcc -pipe -O -g    -MD -MF elf_next.d -MT elf_next.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC elf_next.c -o elf_next.pico.o
ld -x -r elf_next.pico.o -o elf_next.pico
gcc -pipe -O -g    -MD -MF elf_open.d -MT elf_open.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC elf_open.c -o elf_open.pico.o
ld -x -r elf_open.pico.o -o elf_open.pico
gcc -pipe -O -g    -MD -MF elf_rand.d -MT elf_rand.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC elf_rand.c -o elf_rand.pico.o
ld -x -r elf_rand.pico.o -o elf_rand.pico
gcc -pipe -O -g    -MD -MF elf_rawfile.d -MT elf_rawfile.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC elf_rawfile.c -o elf_rawfile.pico.o
ld -x -r elf_rawfile.pico.o -o elf_rawfile.pico
gcc -pipe -O -g    -MD -MF elf_phnum.d -MT elf_phnum.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC elf_phnum.c -o elf_phnum.pico.o
ld -x -r elf_phnum.pico.o -o elf_phnum.pico
gcc -pipe -O -g    -MD -MF elf_shnum.d -MT elf_shnum.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC elf_shnum.c -o elf_shnum.pico.o
ld -x -r elf_shnum.pico.o -o elf_shnum.pico
gcc -pipe -O -g    -MD -MF elf_shstrndx.d -MT elf_shstrndx.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC elf_shstrndx.c -o elf_shstrndx.pico.o
ld -x -r elf_shstrndx.pico.o -o elf_shstrndx.pico
gcc -pipe -O -g    -MD -MF elf_scn.d -MT elf_scn.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC elf_scn.c -o elf_scn.pico.o
ld -x -r elf_scn.pico.o -o elf_scn.pico
gcc -pipe -O -g    -MD -MF elf_strptr.d -MT elf_strptr.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC elf_strptr.c -o elf_strptr.pico.o
elf_strptr.c: In function 'elf_strptr':
elf_strptr.c:109:13: warning: implicit declaration of function 'roundup2' [-Wimplicit-function-declaration]
  109 |     count = roundup2(count, alignment);
      |             ^~~~~~~~
ld -x -r elf_strptr.pico.o -o elf_strptr.pico
gcc -pipe -O -g    -MD -MF elf_update.d -MT elf_update.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC elf_update.c -o elf_update.pico.o
elf_update.c: In function '_libelf_compute_section_extents':
elf_update.c:258:15: warning: implicit declaration of function 'roundup2' [-Wimplicit-function-declaration]
  258 |    scn_size = roundup2(scn_size, d->d_align);
      |               ^~~~~~~~
elf_update.c:317:14: warning: implicit declaration of function 'roundup' [-Wimplicit-function-declaration]
  317 |  sh_offset = roundup((uint64_t) rc, sh_align);
      |              ^~~~~~~
ld -x -r elf_update.pico.o -o elf_update.pico
gcc -pipe -O -g    -MD -MF elf_version.d -MT elf_version.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC elf_version.c -o elf_version.pico.o
ld -x -r elf_version.pico.o -o elf_version.pico
gcc -pipe -O -g    -MD -MF gelf_cap.d -MT gelf_cap.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC gelf_cap.c -o gelf_cap.pico.o
ld -x -r gelf_cap.pico.o -o gelf_cap.pico
gcc -pipe -O -g    -MD -MF gelf_checksum.d -MT gelf_checksum.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC gelf_checksum.c -o gelf_checksum.pico.o
ld -x -r gelf_checksum.pico.o -o gelf_checksum.pico
gcc -pipe -O -g    -MD -MF gelf_dyn.d -MT gelf_dyn.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC gelf_dyn.c -o gelf_dyn.pico.o
ld -x -r gelf_dyn.pico.o -o gelf_dyn.pico
gcc -pipe -O -g    -MD -MF gelf_ehdr.d -MT gelf_ehdr.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC gelf_ehdr.c -o gelf_ehdr.pico.o
ld -x -r gelf_ehdr.pico.o -o gelf_ehdr.pico
gcc -pipe -O -g    -MD -MF gelf_getclass.d -MT gelf_getclass.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC gelf_getclass.c -o gelf_getclass.pico.o
ld -x -r gelf_getclass.pico.o -o gelf_getclass.pico
gcc -pipe -O -g    -MD -MF gelf_fsize.d -MT gelf_fsize.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC gelf_fsize.c -o gelf_fsize.pico.o
ld -x -r gelf_fsize.pico.o -o gelf_fsize.pico
gcc -pipe -O -g    -MD -MF gelf_move.d -MT gelf_move.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC gelf_move.c -o gelf_move.pico.o
ld -x -r gelf_move.pico.o -o gelf_move.pico
gcc -pipe -O -g    -MD -MF gelf_phdr.d -MT gelf_phdr.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC gelf_phdr.c -o gelf_phdr.pico.o
ld -x -r gelf_phdr.pico.o -o gelf_phdr.pico
gcc -pipe -O -g    -MD -MF gelf_rel.d -MT gelf_rel.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC gelf_rel.c -o gelf_rel.pico.o
ld -x -r gelf_rel.pico.o -o gelf_rel.pico
gcc -pipe -O -g    -MD -MF gelf_rela.d -MT gelf_rela.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC gelf_rela.c -o gelf_rela.pico.o
ld -x -r gelf_rela.pico.o -o gelf_rela.pico
gcc -pipe -O -g    -MD -MF gelf_shdr.d -MT gelf_shdr.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC gelf_shdr.c -o gelf_shdr.pico.o
ld -x -r gelf_shdr.pico.o -o gelf_shdr.pico
gcc -pipe -O -g    -MD -MF gelf_sym.d -MT gelf_sym.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC gelf_sym.c -o gelf_sym.pico.o
ld -x -r gelf_sym.pico.o -o gelf_sym.pico
gcc -pipe -O -g    -MD -MF gelf_syminfo.d -MT gelf_syminfo.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC gelf_syminfo.c -o gelf_syminfo.pico.o
ld -x -r gelf_syminfo.pico.o -o gelf_syminfo.pico
gcc -pipe -O -g    -MD -MF gelf_symshndx.d -MT gelf_symshndx.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC gelf_symshndx.c -o gelf_symshndx.pico.o
ld -x -r gelf_symshndx.pico.o -o gelf_symshndx.pico
gcc -pipe -O -g    -MD -MF gelf_xlate.d -MT gelf_xlate.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC gelf_xlate.c -o gelf_xlate.pico.o
ld -x -r gelf_xlate.pico.o -o gelf_xlate.pico
gcc -pipe -O -g    -MD -MF libelf_align.d -MT libelf_align.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC libelf_align.c -o libelf_align.pico.o
ld -x -r libelf_align.pico.o -o libelf_align.pico
gcc -pipe -O -g    -MD -MF libelf_allocate.d -MT libelf_allocate.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC libelf_allocate.c -o libelf_allocate.pico.o
ld -x -r libelf_allocate.pico.o -o libelf_allocate.pico
gcc -pipe -O -g    -MD -MF libelf_ar.d -MT libelf_ar.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC libelf_ar.c -o libelf_ar.pico.o
ld -x -r libelf_ar.pico.o -o libelf_ar.pico
gcc -pipe -O -g    -MD -MF libelf_ar_util.d -MT libelf_ar_util.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC libelf_ar_util.c -o libelf_ar_util.pico.o
ld -x -r libelf_ar_util.pico.o -o libelf_ar_util.pico
gcc -pipe -O -g    -MD -MF libelf_checksum.d -MT libelf_checksum.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC libelf_checksum.c -o libelf_checksum.pico.o
ld -x -r libelf_checksum.pico.o -o libelf_checksum.pico
gcc -pipe -O -g    -MD -MF libelf_data.d -MT libelf_data.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC libelf_data.c -o libelf_data.pico.o
ld -x -r libelf_data.pico.o -o libelf_data.pico
gcc -pipe -O -g    -MD -MF libelf_ehdr.d -MT libelf_ehdr.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC libelf_ehdr.c -o libelf_ehdr.pico.o
ld -x -r libelf_ehdr.pico.o -o libelf_ehdr.pico
gcc -pipe -O -g    -MD -MF libelf_elfmachine.d -MT libelf_elfmachine.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC libelf_elfmachine.c -o libelf_elfmachine.pico.o
ld -x -r libelf_elfmachine.pico.o -o libelf_elfmachine.pico
gcc -pipe -O -g    -MD -MF libelf_extended.d -MT libelf_extended.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC libelf_extended.c -o libelf_extended.pico.o
ld -x -r libelf_extended.pico.o -o libelf_extended.pico
gcc -pipe -O -g    -MD -MF libelf_memory.d -MT libelf_memory.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC libelf_memory.c -o libelf_memory.pico.o
ld -x -r libelf_memory.pico.o -o libelf_memory.pico
gcc -pipe -O -g    -MD -MF libelf_open.d -MT libelf_open.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC libelf_open.c -o libelf_open.pico.o
libelf_open.c: In function '_libelf_open_object':
libelf_open.c:147:7: warning: implicit declaration of function 'S_ISSOCK' [-Wimplicit-function-declaration]
  147 |      !S_ISSOCK(mode)) {
      |       ^~~~~~~~
ld -x -r libelf_open.pico.o -o libelf_open.pico
gcc -pipe -O -g    -MD -MF libelf_phdr.d -MT libelf_phdr.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC libelf_phdr.c -o libelf_phdr.pico.o
ld -x -r libelf_phdr.pico.o -o libelf_phdr.pico
gcc -pipe -O -g    -MD -MF libelf_shdr.d -MT libelf_shdr.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC libelf_shdr.c -o libelf_shdr.pico.o
ld -x -r libelf_shdr.pico.o -o libelf_shdr.pico
gcc -pipe -O -g    -MD -MF libelf_xlate.d -MT libelf_xlate.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC libelf_xlate.c -o libelf_xlate.pico.o
ld -x -r libelf_xlate.pico.o -o libelf_xlate.pico
gcc -pipe -O -g    -MD -MF libelf_fsize.d -MT libelf_fsize.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC libelf_fsize.c -o libelf_fsize.pico.o
ld -x -r libelf_fsize.pico.o -o libelf_fsize.pico
gcc -pipe -O -g    -MD -MF libelf_msize.d -MT libelf_msize.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC libelf_msize.c -o libelf_msize.pico.o
ld -x -r libelf_msize.pico.o -o libelf_msize.pico
gcc -pipe -O -g    -MD -MF libelf_convert.d -MT libelf_convert.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC libelf_convert.c -o libelf_convert.pico.o
ld -x -r libelf_convert.pico.o -o libelf_convert.pico
building shared object elf library
C:\msys64\mingw64\bin\ar.exe: elf_begin.pico: warning: no symbol for section '.refptr._libelf' found
C:\msys64\mingw64\bin\ar.exe: elf_cntl.pico: warning: no symbol for section '.refptr._libelf' found
C:\msys64\mingw64\bin\ar.exe: elf_errmsg.pico: warning: no symbol for section '.refptr._libelf' found
C:\msys64\mingw64\bin\ar.exe: elf_errno.pico: warning: no symbol for section '.refptr._libelf' found
C:\msys64\mingw64\bin\ar.exe: elf_data.pico: warning: no symbol for section '.refptr.elf32_fsize' found
C:\msys64\mingw64\bin\ar.exe: elf_fill.pico: warning: no symbol for section '.refptr._libelf' found
C:\msys64\mingw64\bin\ar.exe: elf_flag.pico: warning: no symbol for section '.refptr._libelf' found
C:\msys64\mingw64\bin\ar.exe: elf_getarsym.pico: warning: no symbol for section '.refptr._libelf' found
C:\msys64\mingw64\bin\ar.exe: elf_getbase.pico: warning: no symbol for section '.refptr._libelf' found
C:\msys64\mingw64\bin\ar.exe: elf_getident.pico: warning: no symbol for section '.refptr._libelf' found
C:\msys64\mingw64\bin\ar.exe: elf_memory.pico: warning: no symbol for section '.refptr._libelf' found
C:\msys64\mingw64\bin\ar.exe: elf_next.pico: warning: no symbol for section '.refptr._libelf' found
C:\msys64\mingw64\bin\ar.exe: elf_open.pico: warning: no symbol for section '.refptr._libelf' found
C:\msys64\mingw64\bin\ar.exe: elf_rand.pico: warning: no symbol for section '.refptr._libelf' found
C:\msys64\mingw64\bin\ar.exe: elf_rawfile.pico: warning: no symbol for section '.refptr._libelf' found
C:\msys64\mingw64\bin\ar.exe: elf_phnum.pico: warning: no symbol for section '.refptr._libelf' found
C:\msys64\mingw64\bin\ar.exe: elf_shnum.pico: warning: no symbol for section '.refptr._libelf' found
C:\msys64\mingw64\bin\ar.exe: elf_shstrndx.pico: warning: no symbol for section '.refptr._libelf' found
C:\msys64\mingw64\bin\ar.exe: elf_version.pico: warning: no symbol for section '.refptr._libelf' found
C:\msys64\mingw64\bin\ar.exe: gelf_fsize.pico: warning: no symbol for section '.refptr._libelf' found
C:\msys64\mingw64\bin\ar.exe: gelf_shdr.pico: warning: no symbol for section '.refptr._libelf' found
C:\msys64\mingw64\bin\ar.exe: libelf_ar_util.pico: warning: no symbol for section '.refptr._libelf' found
C:\msys64\mingw64\bin\ar.exe: libelf_memory.pico: warning: no symbol for section '.refptr._libelf' found
C:\msys64\mingw64\bin\ar.exe: libelf_shdr.pico: warning: no symbol for section '.refptr._libelf' found
C:\msys64\mingw64\bin\ar.exe: libelf_xlate.pico: warning: no symbol for section '.refptr.elf32_fsize' found
C:\msys64\mingw64\bin\ar.exe: libelf_fsize.pico: warning: no symbol for section '.refptr._libelf' found
C:\msys64\mingw64\bin\ar.exe: libelf_msize.pico: warning: no symbol for section '.refptr._libelf' found
ranlib libelf_pic.a
C:\msys64\mingw64\bin\ranlib.exe: libelf_pic.a(elf_begin.pico): warning: no symbol for section '.refptr._libelf' found
C:\msys64\mingw64\bin\ranlib.exe: libelf_pic.a(elf_cntl.pico): warning: no symbol for section '.refptr._libelf' found
C:\msys64\mingw64\bin\ranlib.exe: libelf_pic.a(elf_errmsg.pico): warning: no symbol for section '.refptr._libelf' found
C:\msys64\mingw64\bin\ranlib.exe: libelf_pic.a(elf_errno.pico): warning: no symbol for section '.refptr._libelf' found
C:\msys64\mingw64\bin\ranlib.exe: libelf_pic.a(elf_data.pico): warning: no symbol for section '.refptr.elf32_fsize' found
C:\msys64\mingw64\bin\ranlib.exe: libelf_pic.a(elf_fill.pico): warning: no symbol for section '.refptr._libelf' found
C:\msys64\mingw64\bin\ranlib.exe: libelf_pic.a(elf_flag.pico): warning: no symbol for section '.refptr._libelf' found
C:\msys64\mingw64\bin\ranlib.exe: libelf_pic.a(elf_getarsym.pico): warning: no symbol for section '.refptr._libelf' found
C:\msys64\mingw64\bin\ranlib.exe: libelf_pic.a(elf_getbase.pico): warning: no symbol for section '.refptr._libelf' found
C:\msys64\mingw64\bin\ranlib.exe: libelf_pic.a(elf_getident.pico): warning: no symbol for section '.refptr._libelf' found
C:\msys64\mingw64\bin\ranlib.exe: libelf_pic.a(elf_memory.pico): warning: no symbol for section '.refptr._libelf' found
C:\msys64\mingw64\bin\ranlib.exe: libelf_pic.a(elf_next.pico): warning: no symbol for section '.refptr._libelf' found
C:\msys64\mingw64\bin\ranlib.exe: libelf_pic.a(elf_open.pico): warning: no symbol for section '.refptr._libelf' found
C:\msys64\mingw64\bin\ranlib.exe: libelf_pic.a(elf_rand.pico): warning: no symbol for section '.refptr._libelf' found
C:\msys64\mingw64\bin\ranlib.exe: libelf_pic.a(elf_rawfile.pico): warning: no symbol for section '.refptr._libelf' found
C:\msys64\mingw64\bin\ranlib.exe: libelf_pic.a(elf_phnum.pico): warning: no symbol for section '.refptr._libelf' found
C:\msys64\mingw64\bin\ranlib.exe: libelf_pic.a(elf_shnum.pico): warning: no symbol for section '.refptr._libelf' found
C:\msys64\mingw64\bin\ranlib.exe: libelf_pic.a(elf_shstrndx.pico): warning: no symbol for section '.refptr._libelf' found
C:\msys64\mingw64\bin\ranlib.exe: libelf_pic.a(elf_version.pico): warning: no symbol for section '.refptr._libelf' found
C:\msys64\mingw64\bin\ranlib.exe: libelf_pic.a(gelf_fsize.pico): warning: no symbol for section '.refptr._libelf' found
C:\msys64\mingw64\bin\ranlib.exe: libelf_pic.a(gelf_shdr.pico): warning: no symbol for section '.refptr._libelf' found
C:\msys64\mingw64\bin\ranlib.exe: libelf_pic.a(libelf_ar_util.pico): warning: no symbol for section '.refptr._libelf' found
C:\msys64\mingw64\bin\ranlib.exe: libelf_pic.a(libelf_memory.pico): warning: no symbol for section '.refptr._libelf' found
C:\msys64\mingw64\bin\ranlib.exe: libelf_pic.a(libelf_shdr.pico): warning: no symbol for section '.refptr._libelf' found
C:\msys64\mingw64\bin\ranlib.exe: libelf_pic.a(libelf_xlate.pico): warning: no symbol for section '.refptr.elf32_fsize' found
C:\msys64\mingw64\bin\ranlib.exe: libelf_pic.a(libelf_fsize.pico): warning: no symbol for section '.refptr._libelf' found
C:\msys64\mingw64\bin\ranlib.exe: libelf_pic.a(libelf_msize.pico): warning: no symbol for section '.refptr._libelf' found
building shared elf library (version 1)
ld -o libelf.dll.1 -Bshareable elf.pico elf_begin.pico elf_cntl.pico elf_end.pico elf_errmsg.pico elf_errno.pico elf_data.pico elf_fill.pico elf_flag.pico elf_getarhdr.pico elf_getarsym.pico elf_getbase.pico elf_getident.pico elf_hash.pico elf_kind.pico elf_memory.pico elf_next.pico elf_open.pico elf_rand.pico elf_rawfile.pico elf_phnum.pico elf_shnum.pico elf_shstrndx.pico elf_scn.pico elf_strptr.pico elf_update.pico elf_version.pico gelf_cap.pico gelf_checksum.pico gelf_dyn.pico gelf_ehdr.pico gelf_getclass.pico gelf_fsize.pico gelf_move.pico gelf_phdr.pico gelf_rel.pico gelf_rela.pico gelf_shdr.pico gelf_sym.pico gelf_syminfo.pico gelf_symshndx.pico gelf_xlate.pico libelf_align.pico libelf_allocate.pico libelf_ar.pico libelf_ar_util.pico libelf_checksum.pico libelf_data.pico libelf_ehdr.pico libelf_elfmachine.pico libelf_extended.pico libelf_memory.pico libelf_open.pico libelf_phdr.pico libelf_shdr.pico libelf_xlate.pico libelf_fsize.pico libelf_msize.pico libelf_convert.pico
C:\msys64\mingw64\bin\ld.exe: elf_begin.pico: warning: no symbol for section '.refptr._libelf' found
C:\msys64\mingw64\bin\ld.exe: elf_cntl.pico: warning: no symbol for section '.refptr._libelf' found
C:\msys64\mingw64\bin\ld.exe: elf_errmsg.pico: warning: no symbol for section '.refptr._libelf' found
C:\msys64\mingw64\bin\ld.exe: elf_errno.pico: warning: no symbol for section '.refptr._libelf' found
C:\msys64\mingw64\bin\ld.exe: elf_data.pico: warning: no symbol for section '.refptr.elf32_fsize' found
C:\msys64\mingw64\bin\ld.exe: elf_fill.pico: warning: no symbol for section '.refptr._libelf' found
C:\msys64\mingw64\bin\ld.exe: elf_flag.pico: warning: no symbol for section '.refptr._libelf' found
C:\msys64\mingw64\bin\ld.exe: elf_getarsym.pico: warning: no symbol for section '.refptr._libelf' found
C:\msys64\mingw64\bin\ld.exe: elf_getbase.pico: warning: no symbol for section '.refptr._libelf' found
C:\msys64\mingw64\bin\ld.exe: elf_getident.pico: warning: no symbol for section '.refptr._libelf' found
C:\msys64\mingw64\bin\ld.exe: elf_memory.pico: warning: no symbol for section '.refptr._libelf' found
C:\msys64\mingw64\bin\ld.exe: elf_next.pico: warning: no symbol for section '.refptr._libelf' found
C:\msys64\mingw64\bin\ld.exe: elf_open.pico: warning: no symbol for section '.refptr._libelf' found
C:\msys64\mingw64\bin\ld.exe: elf_rand.pico: warning: no symbol for section '.refptr._libelf' found
C:\msys64\mingw64\bin\ld.exe: elf_rawfile.pico: warning: no symbol for section '.refptr._libelf' found
C:\msys64\mingw64\bin\ld.exe: elf_phnum.pico: warning: no symbol for section '.refptr._libelf' found
C:\msys64\mingw64\bin\ld.exe: elf_shnum.pico: warning: no symbol for section '.refptr._libelf' found
C:\msys64\mingw64\bin\ld.exe: elf_shstrndx.pico: warning: no symbol for section '.refptr._libelf' found
C:\msys64\mingw64\bin\ld.exe: elf_version.pico: warning: no symbol for section '.refptr._libelf' found
C:\msys64\mingw64\bin\ld.exe: gelf_fsize.pico: warning: no symbol for section '.refptr._libelf' found
C:\msys64\mingw64\bin\ld.exe: gelf_shdr.pico: warning: no symbol for section '.refptr._libelf' found
C:\msys64\mingw64\bin\ld.exe: libelf_ar_util.pico: warning: no symbol for section '.refptr._libelf' found
C:\msys64\mingw64\bin\ld.exe: libelf_memory.pico: warning: no symbol for section '.refptr._libelf' found
C:\msys64\mingw64\bin\ld.exe: libelf_shdr.pico: warning: no symbol for section '.refptr._libelf' found
C:\msys64\mingw64\bin\ld.exe: libelf_xlate.pico: warning: no symbol for section '.refptr.elf32_fsize' found
C:\msys64\mingw64\bin\ld.exe: libelf_fsize.pico: warning: no symbol for section '.refptr._libelf' found
C:\msys64\mingw64\bin\ld.exe: libelf_msize.pico: warning: no symbol for section '.refptr._libelf' found
C:\msys64\mingw64\bin\ld.exe: elf_end.pico: in function `elf_end':
C:\msys64\home\ofry\elftoolchain-githubfork\libelf/elf_end.c:74: undefined reference to `__imp__assert'
C:\msys64\mingw64\bin\ld.exe: C:\msys64\home\ofry\elftoolchain-githubfork\libelf/elf_end.c:51: undefined reference to `__imp__assert'
C:\msys64\mingw64\bin\ld.exe: C:\msys64\home\ofry\elftoolchain-githubfork\libelf/elf_end.c:81: undefined reference to `free'
C:\msys64\mingw64\bin\ld.exe: elf_errmsg.pico: in function `snprintf':
C:/msys64/mingw64/x86_64-w64-mingw32/include/stdio.h:441: undefined reference to `__mingw_vsnprintf'
C:\msys64\mingw64\bin\ld.exe: elf_errmsg.pico: in function `elf_errmsg':
C:\msys64\home\ofry\elftoolchain-githubfork\libelf/elf_errmsg.c:77: undefined reference to `strerror'
C:\msys64\mingw64\bin\ld.exe: elf_data.pico: in function `elf_getdata':
C:\msys64\home\ofry\elftoolchain-githubfork\libelf/elf_data.c:56: undefined reference to `__imp__assert'
C:\msys64\mingw64\bin\ld.exe: C:\msys64\home\ofry\elftoolchain-githubfork\libelf/elf_data.c:76: undefined reference to `__imp__assert'
C:\msys64\mingw64\bin\ld.exe: C:\msys64\home\ofry\elftoolchain-githubfork\libelf/elf_data.c:148: undefined reference to `malloc'
C:\msys64\mingw64\bin\ld.exe: elf_data.pico: in function `elf_newdata':
C:\msys64\home\ofry\elftoolchain-githubfork\libelf/elf_data.c:182: undefined reference to `__imp__assert'
C:\msys64\mingw64\bin\ld.exe: elf_data.pico: in function `elf_rawdata':
C:\msys64\home\ofry\elftoolchain-githubfork\libelf/elf_data.c:228: undefined reference to `__imp__assert'
C:\msys64\mingw64\bin\ld.exe: C:\msys64\home\ofry\elftoolchain-githubfork\libelf/elf_data.c:240: undefined reference to `__imp__assert'
C:\msys64\mingw64\bin\ld.exe: elf_getident.pico: in function `elf_getident':
C:\msys64\home\ofry\elftoolchain-githubfork\libelf/elf_getident.c:53: undefined reference to `__imp__assert'
C:\msys64\mingw64\bin\ld.exe: elf_next.pico: in function `elf_next':
C:\msys64\home\ofry\elftoolchain-githubfork\libelf/elf_next.c:53: undefined reference to `__imp__assert'
C:\msys64\mingw64\bin\ld.exe: elf_next.pico:C:\msys64\home\ofry\elftoolchain-githubfork\libelf/elf_next.c:54: more undefined references to `__imp__assert' follow
C:\msys64\mingw64\bin\ld.exe: elf_strptr.pico: in function `elf_strptr':
C:\msys64\home\ofry\elftoolchain-githubfork\libelf/elf_strptr.c:109: undefined reference to `roundup2'
C:\msys64\mingw64\bin\ld.exe: elf_update.pico: in function `_libelf_insert_extent':
C:\msys64\home\ofry\elftoolchain-githubfork\libelf/elf_update.c:427: undefined reference to `malloc'
C:\msys64\mingw64\bin\ld.exe: C:\msys64\home\ofry\elftoolchain-githubfork\libelf/elf_update.c:413: undefined reference to `__imp__assert'
C:\msys64\mingw64\bin\ld.exe: elf_update.pico: in function `_libelf_extent_is_unused':
C:\msys64\home\ofry\elftoolchain-githubfork\libelf/elf_update.c:390: undefined reference to `__imp__assert'
C:\msys64\mingw64\bin\ld.exe: elf_update.pico: in function `_libelf_insert_extent':
C:\msys64\home\ofry\elftoolchain-githubfork\libelf/elf_update.c:428: undefined reference to `__imp__errno'
C:\msys64\mingw64\bin\ld.exe: C:\msys64\home\ofry\elftoolchain-githubfork\libelf/elf_update.c:427: undefined reference to `malloc'
C:\msys64\mingw64\bin\ld.exe: elf_update.pico: in function `_libelf_resync_elf':
C:\msys64\home\ofry\elftoolchain-githubfork\libelf/elf_update.c:632: undefined reference to `roundup'
C:\msys64\mingw64\bin\ld.exe: elf_update.pico: in function `_libelf_compute_section_extents':
C:\msys64\home\ofry\elftoolchain-githubfork\libelf/elf_update.c:142: undefined reference to `__imp__assert'
C:\msys64\mingw64\bin\ld.exe: C:\msys64\home\ofry\elftoolchain-githubfork\libelf/elf_update.c:317: undefined reference to `roundup'
C:\msys64\mingw64\bin\ld.exe: C:\msys64\home\ofry\elftoolchain-githubfork\libelf/elf_update.c:258: undefined reference to `roundup2'
C:\msys64\mingw64\bin\ld.exe: elf_update.pico: in function `_libelf_resync_elf':
C:\msys64\home\ofry\elftoolchain-githubfork\libelf/elf_update.c:679: undefined reference to `roundup'
C:\msys64\mingw64\bin\ld.exe: elf_update.pico: in function `_libelf_write_elf':
C:\msys64\home\ofry\elftoolchain-githubfork\libelf/elf_update.c:1041: undefined reference to `__imp__assert'
C:\msys64\mingw64\bin\ld.exe: C:\msys64\home\ofry\elftoolchain-githubfork\libelf/elf_update.c:1044: undefined reference to `malloc'
C:\msys64\mingw64\bin\ld.exe: elf_update.pico: in function `_libelf_release_extents':
C:\msys64\home\ofry\elftoolchain-githubfork\libelf/elf_update.c:355: undefined reference to `free'
C:\msys64\mingw64\bin\ld.exe: elf_update.pico: in function `_libelf_write_elf':
C:\msys64\home\ofry\elftoolchain-githubfork\libelf/elf_update.c:1040: undefined reference to `__imp__assert'
C:\msys64\mingw64\bin\ld.exe: C:\msys64\home\ofry\elftoolchain-githubfork\libelf/elf_update.c:1042: undefined reference to `__imp__assert'
C:\msys64\mingw64\bin\ld.exe: C:\msys64\home\ofry\elftoolchain-githubfork\libelf/elf_update.c:1045: undefined reference to `__imp__errno'
C:\msys64\mingw64\bin\ld.exe: C:\msys64\home\ofry\elftoolchain-githubfork\libelf/elf_update.c:1054: undefined reference to `memset'
C:\msys64\mingw64\bin\ld.exe: C:\msys64\home\ofry\elftoolchain-githubfork\libelf/elf_update.c:1083: undefined reference to `__imp__assert'
C:\msys64\mingw64\bin\ld.exe: elf_update.pico: in function `_libelf_write_phdr':
C:\msys64\home\ofry\elftoolchain-githubfork\libelf/elf_update.c:921: undefined reference to `__imp__assert'
C:\msys64\mingw64\bin\ld.exe: elf_update.pico: in function `_libelf_write_ehdr':
C:\msys64\home\ofry\elftoolchain-githubfork\libelf/elf_update.c:854: undefined reference to `__imp__assert'
C:\msys64\mingw64\bin\ld.exe: C:\msys64\home\ofry\elftoolchain-githubfork\libelf/elf_update.c:859: undefined reference to `__imp__assert'
C:\msys64\mingw64\bin\ld.exe: elf_update.pico: in function `_libelf_write_phdr':
C:\msys64\home\ofry\elftoolchain-githubfork\libelf/elf_update.c:905: undefined reference to `__imp__assert'
C:\msys64\mingw64\bin\ld.exe: elf_update.pico:C:\msys64\home\ofry\elftoolchain-githubfork\libelf/elf_update.c:908: more undefined references to `__imp__assert' follow
C:\msys64\mingw64\bin\ld.exe: elf_update.pico: in function `_libelf_write_scn':
C:\msys64\home\ofry\elftoolchain-githubfork\libelf/elf_update.c:777: undefined reference to `memset'
C:\msys64\mingw64\bin\ld.exe: C:\msys64\home\ofry\elftoolchain-githubfork\libelf/elf_update.c:783: undefined reference to `__imp__assert'
C:\msys64\mingw64\bin\ld.exe: C:\msys64\home\ofry\elftoolchain-githubfork\libelf/elf_update.c:785: undefined reference to `__imp__assert'
C:\msys64\mingw64\bin\ld.exe: C:\msys64\home\ofry\elftoolchain-githubfork\libelf/elf_update.c:787: undefined reference to `memcpy'
C:\msys64\mingw64\bin\ld.exe: C:\msys64\home\ofry\elftoolchain-githubfork\libelf/elf_update.c:813: undefined reference to `memset'
C:\msys64\mingw64\bin\ld.exe: C:\msys64\home\ofry\elftoolchain-githubfork\libelf/elf_update.c:819: undefined reference to `__imp__assert'
C:\msys64\mingw64\bin\ld.exe: C:\msys64\home\ofry\elftoolchain-githubfork\libelf/elf_update.c:820: undefined reference to `__imp__assert'
C:\msys64\mingw64\bin\ld.exe: C:\msys64\home\ofry\elftoolchain-githubfork\libelf/elf_update.c:821: undefined reference to `__imp__assert'
C:\msys64\mingw64\bin\ld.exe: elf_update.pico: in function `_libelf_write_shdr':
C:\msys64\home\ofry\elftoolchain-githubfork\libelf/elf_update.c:968: undefined reference to `__imp__assert'
C:\msys64\mingw64\bin\ld.exe: C:\msys64\home\ofry\elftoolchain-githubfork\libelf/elf_update.c:982: undefined reference to `__imp__assert'
C:\msys64\mingw64\bin\ld.exe: elf_update.pico:C:\msys64\home\ofry\elftoolchain-githubfork\libelf/elf_update.c:983: more undefined references to `__imp__assert' follow
C:\msys64\mingw64\bin\ld.exe: elf_update.pico: in function `ftruncate':
C:/msys64/mingw64/x86_64-w64-mingw32/include/unistd.h:67: undefined reference to `__imp__chsize'
C:\msys64\mingw64\bin\ld.exe: elf_update.pico: in function `_libelf_write_elf':
C:\msys64\home\ofry\elftoolchain-githubfork\libelf/elf_update.c:1097: undefined reference to `lseek'
C:\msys64\mingw64\bin\ld.exe: C:\msys64\home\ofry\elftoolchain-githubfork\libelf/elf_update.c:1116: undefined reference to `write'
C:\msys64\mingw64\bin\ld.exe: C:\msys64\home\ofry\elftoolchain-githubfork\libelf/elf_update.c:1151: undefined reference to `__imp__assert'
C:\msys64\mingw64\bin\ld.exe: C:\msys64\home\ofry\elftoolchain-githubfork\libelf/elf_update.c:1173: undefined reference to `free'
C:\msys64\mingw64\bin\ld.exe: C:\msys64\home\ofry\elftoolchain-githubfork\libelf/elf_update.c:1175: undefined reference to `free'
C:\msys64\mingw64\bin\ld.exe: C:\msys64\home\ofry\elftoolchain-githubfork\libelf/elf_update.c:1183: undefined reference to `free'
C:\msys64\mingw64\bin\ld.exe: C:\msys64\home\ofry\elftoolchain-githubfork\libelf/elf_update.c:1089: undefined reference to `__imp__assert'
C:\msys64\mingw64\bin\ld.exe: C:\msys64\home\ofry\elftoolchain-githubfork\libelf/elf_update.c:1098: undefined reference to `__imp__errno'
C:\msys64\mingw64\bin\ld.exe: C:\msys64\home\ofry\elftoolchain-githubfork\libelf/elf_update.c:1117: undefined reference to `__imp__errno'
C:\msys64\mingw64\bin\ld.exe: C:\msys64\home\ofry\elftoolchain-githubfork\libelf/elf_update.c:1188: undefined reference to `free'
C:\msys64\mingw64\bin\ld.exe: C:\msys64\home\ofry\elftoolchain-githubfork\libelf/elf_update.c:1131: undefined reference to `free'
C:\msys64\mingw64\bin\ld.exe: C:\msys64\home\ofry\elftoolchain-githubfork\libelf/elf_update.c:1126: undefined reference to `__imp__assert'
C:\msys64\mingw64\bin\ld.exe: C:\msys64\home\ofry\elftoolchain-githubfork\libelf/elf_update.c:1127: undefined reference to `__imp__assert'
C:\msys64\mingw64\bin\ld.exe: C:\msys64\home\ofry\elftoolchain-githubfork\libelf/elf_update.c:1130: undefined reference to `__imp__assert'
C:\msys64\mingw64\bin\ld.exe: C:\msys64\home\ofry\elftoolchain-githubfork\libelf/elf_update.c:1166: undefined reference to `free'
C:\msys64\mingw64\bin\ld.exe: C:\msys64\home\ofry\elftoolchain-githubfork\libelf/elf_update.c:1168: undefined reference to `free'
C:\msys64\mingw64\bin\ld.exe: gelf_cap.pico: in function `gelf_getcap':
C:\msys64\home\ofry\elftoolchain-githubfork\libelf/gelf_cap.c:58: undefined reference to `__imp__assert'
C:\msys64\mingw64\bin\ld.exe: gelf_cap.pico: in function `gelf_update_cap':
C:\msys64\home\ofry\elftoolchain-githubfork\libelf/gelf_cap.c:117: undefined reference to `__imp__assert'
C:\msys64\mingw64\bin\ld.exe: gelf_dyn.pico: in function `gelf_getdyn':
C:\msys64\home\ofry\elftoolchain-githubfork\libelf/gelf_dyn.c:58: undefined reference to `__imp__assert'
C:\msys64\mingw64\bin\ld.exe: gelf_dyn.pico: in function `gelf_update_dyn':
C:\msys64\home\ofry\elftoolchain-githubfork\libelf/gelf_dyn.c:118: undefined reference to `__imp__assert'
C:\msys64\mingw64\bin\ld.exe: gelf_move.pico: in function `gelf_getmove':
C:\msys64\home\ofry\elftoolchain-githubfork\libelf/gelf_move.c:58: undefined reference to `__imp__assert'
C:\msys64\mingw64\bin\ld.exe: gelf_move.pico:C:\msys64\home\ofry\elftoolchain-githubfork\libelf/gelf_move.c:121: more undefined references to `__imp__assert' follow
C:\msys64\mingw64\bin\ld.exe: libelf_allocate.pico: in function `_libelf_allocate_elf':
C:\msys64\home\ofry\elftoolchain-githubfork\libelf/libelf_allocate.c:46: undefined reference to `calloc'
C:\msys64\mingw64\bin\ld.exe: C:\msys64\home\ofry\elftoolchain-githubfork\libelf/libelf_allocate.c:47: undefined reference to `__imp__errno'
C:\msys64\mingw64\bin\ld.exe: libelf_allocate.pico: in function `_libelf_init_elf':
C:\msys64\home\ofry\elftoolchain-githubfork\libelf/libelf_allocate.c:65: undefined reference to `__imp__assert'
C:\msys64\mingw64\bin\ld.exe: C:\msys64\home\ofry\elftoolchain-githubfork\libelf/libelf_allocate.c:66: undefined reference to `__imp__assert'
C:\msys64\mingw64\bin\ld.exe: libelf_allocate.pico: in function `_libelf_release_elf':
C:\msys64\home\ofry\elftoolchain-githubfork\libelf/libelf_allocate.c:116: undefined reference to `free'
C:\msys64\mingw64\bin\ld.exe: C:\msys64\home\ofry\elftoolchain-githubfork\libelf/libelf_allocate.c:86: undefined reference to `free'
C:\msys64\mingw64\bin\ld.exe: C:\msys64\home\ofry\elftoolchain-githubfork\libelf/libelf_allocate.c:101: undefined reference to `__imp__assert'
C:\msys64\mingw64\bin\ld.exe: C:\msys64\home\ofry\elftoolchain-githubfork\libelf/libelf_allocate.c:105: undefined reference to `free'
C:\msys64\mingw64\bin\ld.exe: C:\msys64\home\ofry\elftoolchain-githubfork\libelf/libelf_allocate.c:106: undefined reference to `free'
C:\msys64\mingw64\bin\ld.exe: C:\msys64\home\ofry\elftoolchain-githubfork\libelf/libelf_allocate.c:107: undefined reference to `free'
C:\msys64\mingw64\bin\ld.exe: C:\msys64\home\ofry\elftoolchain-githubfork\libelf/libelf_allocate.c:92: undefined reference to `free'
C:\msys64\mingw64\bin\ld.exe: C:\msys64\home\ofry\elftoolchain-githubfork\libelf/libelf_allocate.c:93: undefined reference to `free'
C:\msys64\mingw64\bin\ld.exe: libelf_allocate.pico:C:\msys64\home\ofry\elftoolchain-githubfork\libelf/libelf_allocate.c:96: more undefined references to `free' follow
C:\msys64\mingw64\bin\ld.exe: libelf_allocate.pico: in function `_libelf_allocate_data':
C:\msys64\home\ofry\elftoolchain-githubfork\libelf/libelf_allocate.c:124: undefined reference to `calloc'
C:\msys64\mingw64\bin\ld.exe: libelf_allocate.pico: in function `_libelf_release_data':
C:\msys64\home\ofry\elftoolchain-githubfork\libelf/libelf_allocate.c:141: undefined reference to `free'
C:\msys64\mingw64\bin\ld.exe: C:\msys64\home\ofry\elftoolchain-githubfork\libelf/libelf_allocate.c:139: undefined reference to `free'
C:\msys64\mingw64\bin\ld.exe: libelf_allocate.pico: in function `_libelf_allocate_scn':
C:\msys64\home\ofry\elftoolchain-githubfork\libelf/libelf_allocate.c:151: undefined reference to `calloc'
C:\msys64\mingw64\bin\ld.exe: C:\msys64\home\ofry\elftoolchain-githubfork\libelf/libelf_allocate.c:152: undefined reference to `__imp__errno'
C:\msys64\mingw64\bin\ld.exe: libelf_allocate.pico: in function `_libelf_release_scn':
C:\msys64\home\ofry\elftoolchain-githubfork\libelf/libelf_allocate.c:173: undefined reference to `__imp__assert'
C:\msys64\mingw64\bin\ld.exe: C:\msys64\home\ofry\elftoolchain-githubfork\libelf/libelf_allocate.c:181: undefined reference to `__imp__assert'
C:\msys64\mingw64\bin\ld.exe: C:\msys64\home\ofry\elftoolchain-githubfork\libelf/libelf_allocate.c:192: undefined reference to `free'
C:\msys64\mingw64\bin\ld.exe: C:\msys64\home\ofry\elftoolchain-githubfork\libelf/libelf_allocate.c:188: undefined reference to `__imp__assert'
C:\msys64\mingw64\bin\ld.exe: libelf_ar.pico: in function `_libelf_ar_gethdr':
C:\msys64\home\ofry\elftoolchain-githubfork\libelf/libelf_ar.c:137: undefined reference to `malloc'
C:\msys64\mingw64\bin\ld.exe: C:\msys64\home\ofry\elftoolchain-githubfork\libelf/libelf_ar.c:121: undefined reference to `__imp__assert'
C:\msys64\mingw64\bin\ld.exe: C:\msys64\home\ofry\elftoolchain-githubfork\libelf/libelf_ar.c:125: undefined reference to `__imp__assert'
C:\msys64\mingw64\bin\ld.exe: C:\msys64\home\ofry\elftoolchain-githubfork\libelf/libelf_ar.c:194: undefined reference to `free'
C:\msys64\mingw64\bin\ld.exe: C:\msys64\home\ofry\elftoolchain-githubfork\libelf/libelf_ar.c:196: undefined reference to `free'
C:\msys64\mingw64\bin\ld.exe: C:\msys64\home\ofry\elftoolchain-githubfork\libelf/libelf_ar.c:197: undefined reference to `free'
C:\msys64\mingw64\bin\ld.exe: libelf_ar.pico: in function `_libelf_ar_open_member':
C:\msys64\home\ofry\elftoolchain-githubfork\libelf/libelf_ar.c:215: undefined reference to `__imp__assert'
C:\msys64\mingw64\bin\ld.exe: C:\msys64\home\ofry\elftoolchain-githubfork\libelf/libelf_ar.c:226: undefined reference to `__imp__assert'
C:\msys64\mingw64\bin\ld.exe: libelf_ar.pico: in function `_libelf_ar_process_bsd_symtab':
C:\msys64\home\ofry\elftoolchain-githubfork\libelf/libelf_ar.c:327: undefined reference to `__imp__assert'
C:\msys64\mingw64\bin\ld.exe: C:\msys64\home\ofry\elftoolchain-githubfork\libelf/libelf_ar.c:366: undefined reference to `malloc'
C:\msys64\mingw64\bin\ld.exe: C:\msys64\home\ofry\elftoolchain-githubfork\libelf/libelf_ar.c:325: undefined reference to `__imp__assert'
C:\msys64\mingw64\bin\ld.exe: C:\msys64\home\ofry\elftoolchain-githubfork\libelf/libelf_ar.c:326: undefined reference to `__imp__assert'
C:\msys64\mingw64\bin\ld.exe: C:\msys64\home\ofry\elftoolchain-githubfork\libelf/libelf_ar.c:404: undefined reference to `free'
C:\msys64\mingw64\bin\ld.exe: libelf_ar.pico: in function `_libelf_ar_process_svr4_symtab':
C:\msys64\home\ofry\elftoolchain-githubfork\libelf/libelf_ar.c:439: undefined reference to `__imp__assert'
C:\msys64\mingw64\bin\ld.exe: C:\msys64\home\ofry\elftoolchain-githubfork\libelf/libelf_ar.c:456: undefined reference to `malloc'
C:\msys64\mingw64\bin\ld.exe: C:\msys64\home\ofry\elftoolchain-githubfork\libelf/libelf_ar.c:437: undefined reference to `__imp__assert'
C:\msys64\mingw64\bin\ld.exe: C:\msys64\home\ofry\elftoolchain-githubfork\libelf/libelf_ar.c:438: undefined reference to `__imp__assert'
C:\msys64\mingw64\bin\ld.exe: C:\msys64\home\ofry\elftoolchain-githubfork\libelf/libelf_ar.c:494: undefined reference to `free'
C:\msys64\mingw64\bin\ld.exe: libelf_ar_util.pico: in function `_libelf_ar_get_number':
C:\msys64\home\ofry\elftoolchain-githubfork\libelf/libelf_ar_util.c:49: undefined reference to `__imp__assert'
C:\msys64\mingw64\bin\ld.exe: libelf_ar_util.pico: in function `_libelf_ar_get_translated_name':
C:\msys64\home\ofry\elftoolchain-githubfork\libelf/libelf_ar_util.c:90: undefined reference to `__imp__assert'
C:\msys64\mingw64\bin\ld.exe: C:\msys64\home\ofry\elftoolchain-githubfork\libelf/libelf_ar_util.c:88: undefined reference to `__imp__assert'
C:\msys64\mingw64\bin\ld.exe: C:\msys64\home\ofry\elftoolchain-githubfork\libelf/libelf_ar_util.c:89: undefined reference to `__imp__assert'
C:\msys64\mingw64\bin\ld.exe: C:\msys64\home\ofry\elftoolchain-githubfork\libelf/libelf_ar_util.c:126: undefined reference to `malloc'
C:\msys64\mingw64\bin\ld.exe: C:\msys64\home\ofry\elftoolchain-githubfork\libelf/libelf_ar_util.c:131: undefined reference to `strncpy'
C:\msys64\mingw64\bin\ld.exe: C:\msys64\home\ofry\elftoolchain-githubfork\libelf/libelf_ar_util.c:149: undefined reference to `malloc'
C:\msys64\mingw64\bin\ld.exe: C:\msys64\home\ofry\elftoolchain-githubfork\libelf/libelf_ar_util.c:159: undefined reference to `strncpy'
C:\msys64\mingw64\bin\ld.exe: C:\msys64\home\ofry\elftoolchain-githubfork\libelf/libelf_ar_util.c:194: undefined reference to `malloc'
C:\msys64\mingw64\bin\ld.exe: C:\msys64\home\ofry\elftoolchain-githubfork\libelf/libelf_ar_util.c:199: undefined reference to `strncpy'
C:\msys64\mingw64\bin\ld.exe: libelf_ar_util.pico: in function `_libelf_ar_get_raw_name':
C:\msys64\home\ofry\elftoolchain-githubfork\libelf/libelf_ar_util.c:215: undefined reference to `malloc'
C:\msys64\mingw64\bin\ld.exe: C:\msys64\home\ofry\elftoolchain-githubfork\libelf/libelf_ar_util.c:220: undefined reference to `strncpy'
C:\msys64\mingw64\bin\ld.exe: libelf_ar_util.pico: in function `_libelf_ar_open':
C:\msys64\home\ofry\elftoolchain-githubfork\libelf/libelf_ar_util.c:248: undefined reference to `__imp__assert'
C:\msys64\mingw64\bin\ld.exe: libelf_ehdr.pico: in function `_libelf_ehdr':
C:\msys64\home\ofry\elftoolchain-githubfork\libelf/libelf_ehdr.c:154: undefined reference to `calloc'
C:\msys64\mingw64\bin\ld.exe: C:\msys64\home\ofry\elftoolchain-githubfork\libelf/libelf_ehdr.c:115: undefined reference to `__imp__assert'
C:\msys64\mingw64\bin\ld.exe: C:\msys64\home\ofry\elftoolchain-githubfork\libelf/libelf_ehdr.c:144: undefined reference to `__imp__assert'
C:\msys64\mingw64\bin\ld.exe: libelf_ehdr.pico: in function `_libelf_load_extended':
C:\msys64\home\ofry\elftoolchain-githubfork\libelf/libelf_ehdr.c:49: undefined reference to `__imp__assert'
C:\msys64\mingw64\bin\ld.exe: C:\msys64\home\ofry\elftoolchain-githubfork\libelf/libelf_ehdr.c:52: undefined reference to `__imp__assert'
C:\msys64\mingw64\bin\ld.exe: libelf_elfmachine.pico: in function `_libelf_elfmachine':
C:\msys64\home\ofry\elftoolchain-githubfork\libelf/libelf_elfmachine.c:47: undefined reference to `__imp__assert'
C:\msys64\mingw64\bin\ld.exe: libelf_elfmachine.pico:C:\msys64\home\ofry\elftoolchain-githubfork\libelf/libelf_elfmachine.c:48: more undefined references to `__imp__assert' follow
C:\msys64\mingw64\bin\ld.exe: libelf_open.pico: in function `fstat':
C:/msys64/mingw64/x86_64-w64-mingw32/include/sys/stat.h:224: undefined reference to `__imp__fstat64'
C:\msys64\mingw64\bin\ld.exe: libelf_open.pico: in function `_libelf_open_object':
C:\msys64\home\ofry\elftoolchain-githubfork\libelf/libelf_open.c:207: undefined reference to `malloc'
C:\msys64\mingw64\bin\ld.exe: C:\msys64\home\ofry\elftoolchain-githubfork\libelf/libelf_open.c:212: undefined reference to `read'
C:\msys64\mingw64\bin\ld.exe: C:\msys64\home\ofry\elftoolchain-githubfork\libelf/libelf_open.c:213: undefined reference to `__imp__errno'
C:\msys64\mingw64\bin\ld.exe: C:\msys64\home\ofry\elftoolchain-githubfork\libelf/libelf_open.c:214: undefined reference to `free'
C:\msys64\mingw64\bin\ld.exe: C:\msys64\home\ofry\elftoolchain-githubfork\libelf/libelf_open.c:133: undefined reference to `__imp__assert'
C:\msys64\mingw64\bin\ld.exe: C:\msys64\home\ofry\elftoolchain-githubfork\libelf/libelf_open.c:136: undefined reference to `__imp__errno'
C:\msys64\mingw64\bin\ld.exe: C:\msys64\home\ofry\elftoolchain-githubfork\libelf/libelf_open.c:147: undefined reference to `S_ISSOCK'
C:\msys64\mingw64\bin\ld.exe: libelf_open.pico: in function `_libelf_read_special_file':
C:\msys64\home\ofry\elftoolchain-githubfork\libelf/libelf_open.c:59: undefined reference to `malloc'
C:\msys64\mingw64\bin\ld.exe: C:\msys64\home\ofry\elftoolchain-githubfork\libelf/libelf_open.c:76: undefined reference to `__imp__assert'
C:\msys64\mingw64\bin\ld.exe: C:\msys64\home\ofry\elftoolchain-githubfork\libelf/libelf_open.c:70: undefined reference to `realloc'
C:\msys64\mingw64\bin\ld.exe: C:\msys64\home\ofry\elftoolchain-githubfork\libelf/libelf_open.c:78: undefined reference to `read'
C:\msys64\mingw64\bin\ld.exe: C:\msys64\home\ofry\elftoolchain-githubfork\libelf/libelf_open.c:86: undefined reference to `__imp__errno'
C:\msys64\mingw64\bin\ld.exe: C:\msys64\home\ofry\elftoolchain-githubfork\libelf/libelf_open.c:114: undefined reference to `free'
C:\msys64\mingw64\bin\ld.exe: C:\msys64\home\ofry\elftoolchain-githubfork\libelf/libelf_open.c:102: undefined reference to `free'
C:\msys64\mingw64\bin\ld.exe: libelf_open.pico: in function `_libelf_open_object':
C:\msys64\home\ofry\elftoolchain-githubfork\libelf/libelf_open.c:229: undefined reference to `free'
C:\msys64\mingw64\bin\ld.exe: libelf_open.pico: in function `_libelf_read_special_file':
C:\msys64\home\ofry\elftoolchain-githubfork\libelf/libelf_open.c:97: undefined reference to `realloc'
C:\msys64\mingw64\bin\ld.exe: libelf_phdr.pico: in function `_libelf_getphdr':
C:\msys64\home\ofry\elftoolchain-githubfork\libelf/libelf_phdr.c:47: undefined reference to `__imp__assert'
C:\msys64\mingw64\bin\ld.exe: C:\msys64\home\ofry\elftoolchain-githubfork\libelf/libelf_phdr.c:93: undefined reference to `calloc'
C:\msys64\mingw64\bin\ld.exe: C:\msys64\home\ofry\elftoolchain-githubfork\libelf/libelf_phdr.c:78: undefined reference to `__imp__assert'
C:\msys64\mingw64\bin\ld.exe: libelf_phdr.pico: in function `_libelf_newphdr':
C:\msys64\home\ofry\elftoolchain-githubfork\libelf/libelf_phdr.c:147: undefined reference to `free'
C:\msys64\mingw64\bin\ld.exe: C:\msys64\home\ofry\elftoolchain-githubfork\libelf/libelf_phdr.c:128: undefined reference to `__imp__assert'
C:\msys64\mingw64\bin\ld.exe: C:\msys64\home\ofry\elftoolchain-githubfork\libelf/libelf_phdr.c:129: undefined reference to `__imp__assert'
C:\msys64\mingw64\bin\ld.exe: C:\msys64\home\ofry\elftoolchain-githubfork\libelf/libelf_phdr.c:130: undefined reference to `__imp__assert'
C:\msys64\mingw64\bin\ld.exe: C:\msys64\home\ofry\elftoolchain-githubfork\libelf/libelf_phdr.c:136: undefined reference to `calloc'
C:\msys64\mingw64\bin\ld.exe: C:\msys64\home\ofry\elftoolchain-githubfork\libelf/libelf_phdr.c:143: undefined reference to `free'
C:\msys64\mingw64\bin\ld.exe: libelf_xlate.pico: in function `_libelf_xlate':
C:\msys64\home\ofry\elftoolchain-githubfork\libelf/libelf_xlate.c:64: undefined reference to `__imp__assert'
C:\msys64\mingw64\bin\ld.exe: C:\msys64\home\ofry\elftoolchain-githubfork\libelf/libelf_xlate.c:65: undefined reference to `__imp__assert'
C:\msys64\mingw64\bin\ld.exe: libelf_msize.pico: in function `_libelf_msize':
C:\msys64\home\ofry\elftoolchain-githubfork\libelf/libelf_msize.c:109: undefined reference to `__imp__assert'
C:\msys64\mingw64\bin\ld.exe: C:\msys64\home\ofry\elftoolchain-githubfork\libelf/libelf_msize.c:110: undefined reference to `__imp__assert'
C:\msys64\mingw64\bin\ld.exe: libelf_convert.pico: in function `_libelf_cvt_XWORD_tom':
C:\msys64\home\ofry\elftoolchain-githubfork\libelf/libelf_convert.c:2139: undefined reference to `memcpy'
C:\msys64\mingw64\bin\ld.exe: libelf_convert.pico: in function `_libelf_cvt_XWORD_tof':
C:\msys64\home\ofry\elftoolchain-githubfork\libelf/libelf_convert.c:2115: undefined reference to `memcpy'
C:\msys64\mingw64\bin\ld.exe: libelf_convert.pico: in function `_libelf_cvt_WORD_tom':
C:\msys64\home\ofry\elftoolchain-githubfork\libelf/libelf_convert.c:2092: undefined reference to `memcpy'
C:\msys64\mingw64\bin\ld.exe: libelf_convert.pico: in function `_libelf_cvt_WORD_tof':
C:\msys64\home\ofry\elftoolchain-githubfork\libelf/libelf_convert.c:2068: undefined reference to `memcpy'
C:\msys64\mingw64\bin\ld.exe: libelf_convert.pico: in function `_libelf_cvt_SXWORD_tom':
C:\msys64\home\ofry\elftoolchain-githubfork\libelf/libelf_convert.c:1773: undefined reference to `memcpy'
C:\msys64\mingw64\bin\ld.exe: libelf_convert.pico:C:\msys64\home\ofry\elftoolchain-githubfork\libelf/libelf_convert.c:1749: more undefined references to `memcpy' follow
C:\msys64\mingw64\bin\ld.exe: libelf_convert.pico: in function `_libelf_get_translator':
C:\msys64\home\ofry\elftoolchain-githubfork\libelf/libelf_convert.c:3379: undefined reference to `__imp__assert'
C:\msys64\mingw64\bin\ld.exe: C:\msys64\home\ofry\elftoolchain-githubfork\libelf/libelf_convert.c:3380: undefined reference to `__imp__assert'
C:\msys64\mingw64\bin\ld.exe: C:\msys64\home\ofry\elftoolchain-githubfork\libelf/libelf_convert.c:3381: undefined reference to `__imp__assert'
*** Error code 1

Stop.
bmake.exe[1]: stopped in C:/msys64/home/ofry/elftoolchain-githubfork/libelf
*** Error code 1

Stop.
bmake.exe[1]: stopped in C:/msys64/home/ofry/elftoolchain-githubfork

@mati865
Copy link
Collaborator

mati865 commented Aug 2, 2020

Looks like it's not linked with mingw-w64 CRT.

@ofry
Copy link
Contributor Author

ofry commented Aug 2, 2020

@mati865 Could you give me correct option to link it in ld stage?

@mati865
Copy link
Collaborator

mati865 commented Aug 2, 2020

@ofry the correct way of doing it is calling gcc or clang instead of ld since it will handle it.
Current GCC uses those libs for shared libraries: -lmingw32 -lgcc_s -lgcc -lmoldname -lmingwex -lmsvcrt -lkernel32 -lpthread -ladvapi32 -lshell32 -luser32 -lkernel32 -lmingw32 -lgcc_s -lgcc -lmoldname -lmingwex -lmsvcrt -lkernel32, Clang does it a bit differently. However keep in mind this list changes over the time so hardcoding it is a bad idea, also that will prevent using compiler-rt and libunwind instead of libgcc* (llvm-mingw toolchain does that).

@ofry
Copy link
Contributor Author

ofry commented Aug 2, 2020

If hardcoding it is bad idea, how to handle it right?

@ofry
Copy link
Contributor Author

ofry commented Aug 2, 2020

@mati865

@mati865
Copy link
Collaborator

mati865 commented Aug 2, 2020

@ofry by calling the compiler as the linker.

@ofry
Copy link
Contributor Author

ofry commented Aug 2, 2020

@mati865 Could you give me an example based on bash commands in my task?

@mati865
Copy link
Collaborator

mati865 commented Aug 2, 2020

@ofry this should work assuming the build system sets CC to the detected compiler:

building shared elf library (version 1)
$CC -o libelf.dll.1 -Wl,-Bshareable elf.pico elf_begin.pico elf_cntl.pico elf_end.pico elf_errmsg.pico elf_errno.pico elf_data.pico elf_fill.pico elf_flag.pico elf_getarhdr.pico elf_getarsym.pico elf_getbase.pico elf_getident.pico elf_hash.pico elf_kind.pico elf_memory.pico elf_next.pico elf_open.pico elf_rand.pico elf_rawfile.pico elf_phnum.pico elf_shnum.pico elf_shstrndx.pico elf_scn.pico elf_strptr.pico elf_update.pico elf_version.pico gelf_cap.pico gelf_checksum.pico gelf_dyn.pico gelf_ehdr.pico gelf_getclass.pico gelf_fsize.pico gelf_move.pico gelf_phdr.pico gelf_rel.pico gelf_rela.pico gelf_shdr.pico gelf_sym.pico gelf_syminfo.pico gelf_symshndx.pico gelf_xlate.pico libelf_align.pico libelf_allocate.pico libelf_ar.pico libelf_ar_util.pico libelf_checksum.pico libelf_data.pico libelf_ehdr.pico libelf_elfmachine.pico libelf_extended.pico libelf_memory.pico libelf_open.pico libelf_phdr.pico libelf_shdr.pico libelf_xlate.pico libelf_fsize.pico libelf_msize.pico libelf_convert.pico

@derekbruening
Copy link

As already stated, there is no need to build libelf. Only libdwarf and libelftc. (Maybe those 2 have similar errors: but the lines you're pasting are for libelf).

@ofry
Copy link
Contributor Author

ofry commented Aug 10, 2020

After merge #6768, current state:

$ LANG=en bmake -B
===> common
===> libelf
gcc -pipe -O -g    -MD -MF elf.d -MT elf.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c elf.c
gcc -pipe -O -g    -MD -MF elf_begin.d -MT elf_begin.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c elf_begin.c
gcc -pipe -O -g    -MD -MF elf_cntl.d -MT elf_cntl.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c elf_cntl.c
gcc -pipe -O -g    -MD -MF elf_end.d -MT elf_end.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c elf_end.c
gcc -pipe -O -g    -MD -MF elf_errmsg.d -MT elf_errmsg.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c elf_errmsg.c
gcc -pipe -O -g    -MD -MF elf_errno.d -MT elf_errno.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c elf_errno.c
gcc -pipe -O -g    -MD -MF elf_data.d -MT elf_data.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c elf_data.c
gcc -pipe -O -g    -MD -MF elf_fill.d -MT elf_fill.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c elf_fill.c
gcc -pipe -O -g    -MD -MF elf_flag.d -MT elf_flag.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c elf_flag.c
gcc -pipe -O -g    -MD -MF elf_getarhdr.d -MT elf_getarhdr.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c elf_getarhdr.c
gcc -pipe -O -g    -MD -MF elf_getarsym.d -MT elf_getarsym.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c elf_getarsym.c
gcc -pipe -O -g    -MD -MF elf_getbase.d -MT elf_getbase.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c elf_getbase.c
gcc -pipe -O -g    -MD -MF elf_getident.d -MT elf_getident.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c elf_getident.c
gcc -pipe -O -g    -MD -MF elf_hash.d -MT elf_hash.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c elf_hash.c
gcc -pipe -O -g    -MD -MF elf_kind.d -MT elf_kind.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c elf_kind.c
gcc -pipe -O -g    -MD -MF elf_memory.d -MT elf_memory.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c elf_memory.c
gcc -pipe -O -g    -MD -MF elf_next.d -MT elf_next.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c elf_next.c
gcc -pipe -O -g    -MD -MF elf_open.d -MT elf_open.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c elf_open.c
gcc -pipe -O -g    -MD -MF elf_rand.d -MT elf_rand.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c elf_rand.c
gcc -pipe -O -g    -MD -MF elf_rawfile.d -MT elf_rawfile.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c elf_rawfile.c
gcc -pipe -O -g    -MD -MF elf_phnum.d -MT elf_phnum.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c elf_phnum.c
gcc -pipe -O -g    -MD -MF elf_shnum.d -MT elf_shnum.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c elf_shnum.c
gcc -pipe -O -g    -MD -MF elf_shstrndx.d -MT elf_shstrndx.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c elf_shstrndx.c
gcc -pipe -O -g    -MD -MF elf_scn.d -MT elf_scn.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c elf_scn.c
gcc -pipe -O -g    -MD -MF elf_strptr.d -MT elf_strptr.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c elf_strptr.c
elf_strptr.c: In function 'elf_strptr':
elf_strptr.c:109:13: warning: implicit declaration of function 'roundup2' [-Wimplicit-function-declaration]
  109 |     count = roundup2(count, alignment);
      |             ^~~~~~~~
gcc -pipe -O -g    -MD -MF elf_update.d -MT elf_update.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c elf_update.c
elf_update.c: In function '_libelf_compute_section_extents':
elf_update.c:258:15: warning: implicit declaration of function 'roundup2' [-Wimplicit-function-declaration]
  258 |    scn_size = roundup2(scn_size, d->d_align);
      |               ^~~~~~~~
elf_update.c:317:14: warning: implicit declaration of function 'roundup' [-Wimplicit-function-declaration]
  317 |  sh_offset = roundup((uint64_t) rc, sh_align);
      |              ^~~~~~~
gcc -pipe -O -g    -MD -MF elf_version.d -MT elf_version.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c elf_version.c
gcc -pipe -O -g    -MD -MF gelf_cap.d -MT gelf_cap.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c gelf_cap.c
gcc -pipe -O -g    -MD -MF gelf_checksum.d -MT gelf_checksum.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c gelf_checksum.c
gcc -pipe -O -g    -MD -MF gelf_dyn.d -MT gelf_dyn.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c gelf_dyn.c
gcc -pipe -O -g    -MD -MF gelf_ehdr.d -MT gelf_ehdr.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c gelf_ehdr.c
gcc -pipe -O -g    -MD -MF gelf_getclass.d -MT gelf_getclass.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c gelf_getclass.c
gcc -pipe -O -g    -MD -MF gelf_fsize.d -MT gelf_fsize.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c gelf_fsize.c
gcc -pipe -O -g    -MD -MF gelf_move.d -MT gelf_move.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c gelf_move.c
gcc -pipe -O -g    -MD -MF gelf_phdr.d -MT gelf_phdr.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c gelf_phdr.c
gcc -pipe -O -g    -MD -MF gelf_rel.d -MT gelf_rel.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c gelf_rel.c
gcc -pipe -O -g    -MD -MF gelf_rela.d -MT gelf_rela.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c gelf_rela.c
gcc -pipe -O -g    -MD -MF gelf_shdr.d -MT gelf_shdr.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c gelf_shdr.c
gcc -pipe -O -g    -MD -MF gelf_sym.d -MT gelf_sym.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c gelf_sym.c
gcc -pipe -O -g    -MD -MF gelf_syminfo.d -MT gelf_syminfo.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c gelf_syminfo.c
gcc -pipe -O -g    -MD -MF gelf_symshndx.d -MT gelf_symshndx.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c gelf_symshndx.c
gcc -pipe -O -g    -MD -MF gelf_xlate.d -MT gelf_xlate.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c gelf_xlate.c
gcc -pipe -O -g    -MD -MF libelf_align.d -MT libelf_align.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c libelf_align.c
gcc -pipe -O -g    -MD -MF libelf_allocate.d -MT libelf_allocate.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c libelf_allocate.c
gcc -pipe -O -g    -MD -MF libelf_ar.d -MT libelf_ar.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c libelf_ar.c
gcc -pipe -O -g    -MD -MF libelf_ar_util.d -MT libelf_ar_util.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c libelf_ar_util.c
gcc -pipe -O -g    -MD -MF libelf_checksum.d -MT libelf_checksum.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c libelf_checksum.c
gcc -pipe -O -g    -MD -MF libelf_data.d -MT libelf_data.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c libelf_data.c
gcc -pipe -O -g    -MD -MF libelf_ehdr.d -MT libelf_ehdr.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c libelf_ehdr.c
gcc -pipe -O -g    -MD -MF libelf_elfmachine.d -MT libelf_elfmachine.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c libelf_elfmachine.c
gcc -pipe -O -g    -MD -MF libelf_extended.d -MT libelf_extended.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c libelf_extended.c
gcc -pipe -O -g    -MD -MF libelf_memory.d -MT libelf_memory.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c libelf_memory.c
gcc -pipe -O -g    -MD -MF libelf_open.d -MT libelf_open.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c libelf_open.c
libelf_open.c: In function '_libelf_open_object':
libelf_open.c:147:7: warning: implicit declaration of function 'S_ISSOCK' [-Wimplicit-function-declaration]
  147 |      !S_ISSOCK(mode)) {
      |       ^~~~~~~~
gcc -pipe -O -g    -MD -MF libelf_phdr.d -MT libelf_phdr.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c libelf_phdr.c
gcc -pipe -O -g    -MD -MF libelf_shdr.d -MT libelf_shdr.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c libelf_shdr.c
gcc -pipe -O -g    -MD -MF libelf_xlate.d -MT libelf_xlate.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c libelf_xlate.c
m4 -D SRCDIR=/home/ofry/elftoolchain-githubfork/libelf  libelf_fsize.m4 > libelf_fsize.c
gcc -pipe -O -g    -MD -MF libelf_fsize.d -MT libelf_fsize.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c libelf_fsize.c
m4 -D SRCDIR=/home/ofry/elftoolchain-githubfork/libelf  libelf_msize.m4 > libelf_msize.c
gcc -pipe -O -g    -MD -MF libelf_msize.d -MT libelf_msize.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c libelf_msize.c
m4 -D SRCDIR=/home/ofry/elftoolchain-githubfork/libelf  libelf_convert.m4 > libelf_convert.c
gcc -pipe -O -g    -MD -MF libelf_convert.d -MT libelf_convert.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c libelf_convert.c
building standard elf library
ranlib libelf.a
gcc -pipe -O -g    -MD -MF elf.d -MT elf.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF elf.c -o elf.po
gcc -pipe -O -g    -MD -MF elf_begin.d -MT elf_begin.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF elf_begin.c -o elf_begin.po
gcc -pipe -O -g    -MD -MF elf_cntl.d -MT elf_cntl.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF elf_cntl.c -o elf_cntl.po
gcc -pipe -O -g    -MD -MF elf_end.d -MT elf_end.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF elf_end.c -o elf_end.po
gcc -pipe -O -g    -MD -MF elf_errmsg.d -MT elf_errmsg.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF elf_errmsg.c -o elf_errmsg.po
gcc -pipe -O -g    -MD -MF elf_errno.d -MT elf_errno.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF elf_errno.c -o elf_errno.po
gcc -pipe -O -g    -MD -MF elf_data.d -MT elf_data.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF elf_data.c -o elf_data.po
gcc -pipe -O -g    -MD -MF elf_fill.d -MT elf_fill.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF elf_fill.c -o elf_fill.po
gcc -pipe -O -g    -MD -MF elf_flag.d -MT elf_flag.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF elf_flag.c -o elf_flag.po
gcc -pipe -O -g    -MD -MF elf_getarhdr.d -MT elf_getarhdr.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF elf_getarhdr.c -o elf_getarhdr.po
gcc -pipe -O -g    -MD -MF elf_getarsym.d -MT elf_getarsym.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF elf_getarsym.c -o elf_getarsym.po
gcc -pipe -O -g    -MD -MF elf_getbase.d -MT elf_getbase.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF elf_getbase.c -o elf_getbase.po
gcc -pipe -O -g    -MD -MF elf_getident.d -MT elf_getident.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF elf_getident.c -o elf_getident.po
gcc -pipe -O -g    -MD -MF elf_hash.d -MT elf_hash.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF elf_hash.c -o elf_hash.po
gcc -pipe -O -g    -MD -MF elf_kind.d -MT elf_kind.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF elf_kind.c -o elf_kind.po
gcc -pipe -O -g    -MD -MF elf_memory.d -MT elf_memory.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF elf_memory.c -o elf_memory.po
gcc -pipe -O -g    -MD -MF elf_next.d -MT elf_next.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF elf_next.c -o elf_next.po
gcc -pipe -O -g    -MD -MF elf_open.d -MT elf_open.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF elf_open.c -o elf_open.po
gcc -pipe -O -g    -MD -MF elf_rand.d -MT elf_rand.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF elf_rand.c -o elf_rand.po
gcc -pipe -O -g    -MD -MF elf_rawfile.d -MT elf_rawfile.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF elf_rawfile.c -o elf_rawfile.po
gcc -pipe -O -g    -MD -MF elf_phnum.d -MT elf_phnum.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF elf_phnum.c -o elf_phnum.po
gcc -pipe -O -g    -MD -MF elf_shnum.d -MT elf_shnum.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF elf_shnum.c -o elf_shnum.po
gcc -pipe -O -g    -MD -MF elf_shstrndx.d -MT elf_shstrndx.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF elf_shstrndx.c -o elf_shstrndx.po
gcc -pipe -O -g    -MD -MF elf_scn.d -MT elf_scn.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF elf_scn.c -o elf_scn.po
gcc -pipe -O -g    -MD -MF elf_strptr.d -MT elf_strptr.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF elf_strptr.c -o elf_strptr.po
elf_strptr.c: In function 'elf_strptr':
elf_strptr.c:109:13: warning: implicit declaration of function 'roundup2' [-Wimplicit-function-declaration]
  109 |     count = roundup2(count, alignment);
      |             ^~~~~~~~
gcc -pipe -O -g    -MD -MF elf_update.d -MT elf_update.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF elf_update.c -o elf_update.po
elf_update.c: In function '_libelf_compute_section_extents':
elf_update.c:258:15: warning: implicit declaration of function 'roundup2' [-Wimplicit-function-declaration]
  258 |    scn_size = roundup2(scn_size, d->d_align);
      |               ^~~~~~~~
elf_update.c:317:14: warning: implicit declaration of function 'roundup' [-Wimplicit-function-declaration]
  317 |  sh_offset = roundup((uint64_t) rc, sh_align);
      |              ^~~~~~~
gcc -pipe -O -g    -MD -MF elf_version.d -MT elf_version.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF elf_version.c -o elf_version.po
gcc -pipe -O -g    -MD -MF gelf_cap.d -MT gelf_cap.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF gelf_cap.c -o gelf_cap.po
gcc -pipe -O -g    -MD -MF gelf_checksum.d -MT gelf_checksum.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF gelf_checksum.c -o gelf_checksum.po
gcc -pipe -O -g    -MD -MF gelf_dyn.d -MT gelf_dyn.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF gelf_dyn.c -o gelf_dyn.po
gcc -pipe -O -g    -MD -MF gelf_ehdr.d -MT gelf_ehdr.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF gelf_ehdr.c -o gelf_ehdr.po
gcc -pipe -O -g    -MD -MF gelf_getclass.d -MT gelf_getclass.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF gelf_getclass.c -o gelf_getclass.po
gcc -pipe -O -g    -MD -MF gelf_fsize.d -MT gelf_fsize.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF gelf_fsize.c -o gelf_fsize.po
gcc -pipe -O -g    -MD -MF gelf_move.d -MT gelf_move.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF gelf_move.c -o gelf_move.po
gcc -pipe -O -g    -MD -MF gelf_phdr.d -MT gelf_phdr.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF gelf_phdr.c -o gelf_phdr.po
gcc -pipe -O -g    -MD -MF gelf_rel.d -MT gelf_rel.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF gelf_rel.c -o gelf_rel.po
gcc -pipe -O -g    -MD -MF gelf_rela.d -MT gelf_rela.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF gelf_rela.c -o gelf_rela.po
gcc -pipe -O -g    -MD -MF gelf_shdr.d -MT gelf_shdr.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF gelf_shdr.c -o gelf_shdr.po
gcc -pipe -O -g    -MD -MF gelf_sym.d -MT gelf_sym.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF gelf_sym.c -o gelf_sym.po
gcc -pipe -O -g    -MD -MF gelf_syminfo.d -MT gelf_syminfo.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF gelf_syminfo.c -o gelf_syminfo.po
gcc -pipe -O -g    -MD -MF gelf_symshndx.d -MT gelf_symshndx.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF gelf_symshndx.c -o gelf_symshndx.po
gcc -pipe -O -g    -MD -MF gelf_xlate.d -MT gelf_xlate.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF gelf_xlate.c -o gelf_xlate.po
gcc -pipe -O -g    -MD -MF libelf_align.d -MT libelf_align.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF libelf_align.c -o libelf_align.po
gcc -pipe -O -g    -MD -MF libelf_allocate.d -MT libelf_allocate.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF libelf_allocate.c -o libelf_allocate.po
gcc -pipe -O -g    -MD -MF libelf_ar.d -MT libelf_ar.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF libelf_ar.c -o libelf_ar.po
gcc -pipe -O -g    -MD -MF libelf_ar_util.d -MT libelf_ar_util.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF libelf_ar_util.c -o libelf_ar_util.po
gcc -pipe -O -g    -MD -MF libelf_checksum.d -MT libelf_checksum.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF libelf_checksum.c -o libelf_checksum.po
gcc -pipe -O -g    -MD -MF libelf_data.d -MT libelf_data.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF libelf_data.c -o libelf_data.po
gcc -pipe -O -g    -MD -MF libelf_ehdr.d -MT libelf_ehdr.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF libelf_ehdr.c -o libelf_ehdr.po
gcc -pipe -O -g    -MD -MF libelf_elfmachine.d -MT libelf_elfmachine.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF libelf_elfmachine.c -o libelf_elfmachine.po
gcc -pipe -O -g    -MD -MF libelf_extended.d -MT libelf_extended.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF libelf_extended.c -o libelf_extended.po
gcc -pipe -O -g    -MD -MF libelf_memory.d -MT libelf_memory.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF libelf_memory.c -o libelf_memory.po
gcc -pipe -O -g    -MD -MF libelf_open.d -MT libelf_open.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF libelf_open.c -o libelf_open.po
libelf_open.c: In function '_libelf_open_object':
libelf_open.c:147:7: warning: implicit declaration of function 'S_ISSOCK' [-Wimplicit-function-declaration]
  147 |      !S_ISSOCK(mode)) {
      |       ^~~~~~~~
gcc -pipe -O -g    -MD -MF libelf_phdr.d -MT libelf_phdr.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF libelf_phdr.c -o libelf_phdr.po
gcc -pipe -O -g    -MD -MF libelf_shdr.d -MT libelf_shdr.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF libelf_shdr.c -o libelf_shdr.po
gcc -pipe -O -g    -MD -MF libelf_xlate.d -MT libelf_xlate.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF libelf_xlate.c -o libelf_xlate.po
gcc -pipe -O -g    -MD -MF libelf_fsize.d -MT libelf_fsize.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF libelf_fsize.c -o libelf_fsize.po
gcc -pipe -O -g    -MD -MF libelf_msize.d -MT libelf_msize.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF libelf_msize.c -o libelf_msize.po
gcc -pipe -O -g    -MD -MF libelf_convert.d -MT libelf_convert.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF libelf_convert.c -o libelf_convert.po
building profiled elf library
ranlib libelf_p.a
gcc -pipe -O -g    -MD -MF elf.d -MT elf.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC elf.c -o elf.pico
gcc -pipe -O -g    -MD -MF elf_begin.d -MT elf_begin.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC elf_begin.c -o elf_begin.pico
gcc -pipe -O -g    -MD -MF elf_cntl.d -MT elf_cntl.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC elf_cntl.c -o elf_cntl.pico
gcc -pipe -O -g    -MD -MF elf_end.d -MT elf_end.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC elf_end.c -o elf_end.pico
gcc -pipe -O -g    -MD -MF elf_errmsg.d -MT elf_errmsg.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC elf_errmsg.c -o elf_errmsg.pico
gcc -pipe -O -g    -MD -MF elf_errno.d -MT elf_errno.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC elf_errno.c -o elf_errno.pico
gcc -pipe -O -g    -MD -MF elf_data.d -MT elf_data.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC elf_data.c -o elf_data.pico
gcc -pipe -O -g    -MD -MF elf_fill.d -MT elf_fill.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC elf_fill.c -o elf_fill.pico
gcc -pipe -O -g    -MD -MF elf_flag.d -MT elf_flag.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC elf_flag.c -o elf_flag.pico
gcc -pipe -O -g    -MD -MF elf_getarhdr.d -MT elf_getarhdr.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC elf_getarhdr.c -o elf_getarhdr.pico
gcc -pipe -O -g    -MD -MF elf_getarsym.d -MT elf_getarsym.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC elf_getarsym.c -o elf_getarsym.pico
gcc -pipe -O -g    -MD -MF elf_getbase.d -MT elf_getbase.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC elf_getbase.c -o elf_getbase.pico
gcc -pipe -O -g    -MD -MF elf_getident.d -MT elf_getident.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC elf_getident.c -o elf_getident.pico
gcc -pipe -O -g    -MD -MF elf_hash.d -MT elf_hash.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC elf_hash.c -o elf_hash.pico
gcc -pipe -O -g    -MD -MF elf_kind.d -MT elf_kind.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC elf_kind.c -o elf_kind.pico
gcc -pipe -O -g    -MD -MF elf_memory.d -MT elf_memory.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC elf_memory.c -o elf_memory.pico
gcc -pipe -O -g    -MD -MF elf_next.d -MT elf_next.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC elf_next.c -o elf_next.pico
gcc -pipe -O -g    -MD -MF elf_open.d -MT elf_open.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC elf_open.c -o elf_open.pico
gcc -pipe -O -g    -MD -MF elf_rand.d -MT elf_rand.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC elf_rand.c -o elf_rand.pico
gcc -pipe -O -g    -MD -MF elf_rawfile.d -MT elf_rawfile.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC elf_rawfile.c -o elf_rawfile.pico
gcc -pipe -O -g    -MD -MF elf_phnum.d -MT elf_phnum.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC elf_phnum.c -o elf_phnum.pico
gcc -pipe -O -g    -MD -MF elf_shnum.d -MT elf_shnum.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC elf_shnum.c -o elf_shnum.pico
gcc -pipe -O -g    -MD -MF elf_shstrndx.d -MT elf_shstrndx.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC elf_shstrndx.c -o elf_shstrndx.pico
gcc -pipe -O -g    -MD -MF elf_scn.d -MT elf_scn.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC elf_scn.c -o elf_scn.pico
gcc -pipe -O -g    -MD -MF elf_strptr.d -MT elf_strptr.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC elf_strptr.c -o elf_strptr.pico
elf_strptr.c: In function 'elf_strptr':
elf_strptr.c:109:13: warning: implicit declaration of function 'roundup2' [-Wimplicit-function-declaration]
  109 |     count = roundup2(count, alignment);
      |             ^~~~~~~~
gcc -pipe -O -g    -MD -MF elf_update.d -MT elf_update.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC elf_update.c -o elf_update.pico
elf_update.c: In function '_libelf_compute_section_extents':
elf_update.c:258:15: warning: implicit declaration of function 'roundup2' [-Wimplicit-function-declaration]
  258 |    scn_size = roundup2(scn_size, d->d_align);
      |               ^~~~~~~~
elf_update.c:317:14: warning: implicit declaration of function 'roundup' [-Wimplicit-function-declaration]
  317 |  sh_offset = roundup((uint64_t) rc, sh_align);
      |              ^~~~~~~
gcc -pipe -O -g    -MD -MF elf_version.d -MT elf_version.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC elf_version.c -o elf_version.pico
gcc -pipe -O -g    -MD -MF gelf_cap.d -MT gelf_cap.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC gelf_cap.c -o gelf_cap.pico
gcc -pipe -O -g    -MD -MF gelf_checksum.d -MT gelf_checksum.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC gelf_checksum.c -o gelf_checksum.pico
gcc -pipe -O -g    -MD -MF gelf_dyn.d -MT gelf_dyn.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC gelf_dyn.c -o gelf_dyn.pico
gcc -pipe -O -g    -MD -MF gelf_ehdr.d -MT gelf_ehdr.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC gelf_ehdr.c -o gelf_ehdr.pico
gcc -pipe -O -g    -MD -MF gelf_getclass.d -MT gelf_getclass.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC gelf_getclass.c -o gelf_getclass.pico
gcc -pipe -O -g    -MD -MF gelf_fsize.d -MT gelf_fsize.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC gelf_fsize.c -o gelf_fsize.pico
gcc -pipe -O -g    -MD -MF gelf_move.d -MT gelf_move.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC gelf_move.c -o gelf_move.pico
gcc -pipe -O -g    -MD -MF gelf_phdr.d -MT gelf_phdr.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC gelf_phdr.c -o gelf_phdr.pico
gcc -pipe -O -g    -MD -MF gelf_rel.d -MT gelf_rel.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC gelf_rel.c -o gelf_rel.pico
gcc -pipe -O -g    -MD -MF gelf_rela.d -MT gelf_rela.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC gelf_rela.c -o gelf_rela.pico
gcc -pipe -O -g    -MD -MF gelf_shdr.d -MT gelf_shdr.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC gelf_shdr.c -o gelf_shdr.pico
gcc -pipe -O -g    -MD -MF gelf_sym.d -MT gelf_sym.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC gelf_sym.c -o gelf_sym.pico
gcc -pipe -O -g    -MD -MF gelf_syminfo.d -MT gelf_syminfo.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC gelf_syminfo.c -o gelf_syminfo.pico
gcc -pipe -O -g    -MD -MF gelf_symshndx.d -MT gelf_symshndx.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC gelf_symshndx.c -o gelf_symshndx.pico
gcc -pipe -O -g    -MD -MF gelf_xlate.d -MT gelf_xlate.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC gelf_xlate.c -o gelf_xlate.pico
gcc -pipe -O -g    -MD -MF libelf_align.d -MT libelf_align.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC libelf_align.c -o libelf_align.pico
gcc -pipe -O -g    -MD -MF libelf_allocate.d -MT libelf_allocate.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC libelf_allocate.c -o libelf_allocate.pico
gcc -pipe -O -g    -MD -MF libelf_ar.d -MT libelf_ar.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC libelf_ar.c -o libelf_ar.pico
gcc -pipe -O -g    -MD -MF libelf_ar_util.d -MT libelf_ar_util.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC libelf_ar_util.c -o libelf_ar_util.pico
gcc -pipe -O -g    -MD -MF libelf_checksum.d -MT libelf_checksum.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC libelf_checksum.c -o libelf_checksum.pico
gcc -pipe -O -g    -MD -MF libelf_data.d -MT libelf_data.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC libelf_data.c -o libelf_data.pico
gcc -pipe -O -g    -MD -MF libelf_ehdr.d -MT libelf_ehdr.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC libelf_ehdr.c -o libelf_ehdr.pico
gcc -pipe -O -g    -MD -MF libelf_elfmachine.d -MT libelf_elfmachine.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC libelf_elfmachine.c -o libelf_elfmachine.pico
gcc -pipe -O -g    -MD -MF libelf_extended.d -MT libelf_extended.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC libelf_extended.c -o libelf_extended.pico
gcc -pipe -O -g    -MD -MF libelf_memory.d -MT libelf_memory.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC libelf_memory.c -o libelf_memory.pico
gcc -pipe -O -g    -MD -MF libelf_open.d -MT libelf_open.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC libelf_open.c -o libelf_open.pico
libelf_open.c: In function '_libelf_open_object':
libelf_open.c:147:7: warning: implicit declaration of function 'S_ISSOCK' [-Wimplicit-function-declaration]
  147 |      !S_ISSOCK(mode)) {
      |       ^~~~~~~~
gcc -pipe -O -g    -MD -MF libelf_phdr.d -MT libelf_phdr.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC libelf_phdr.c -o libelf_phdr.pico
gcc -pipe -O -g    -MD -MF libelf_shdr.d -MT libelf_shdr.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC libelf_shdr.c -o libelf_shdr.pico
gcc -pipe -O -g    -MD -MF libelf_xlate.d -MT libelf_xlate.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC libelf_xlate.c -o libelf_xlate.pico
gcc -pipe -O -g    -MD -MF libelf_fsize.d -MT libelf_fsize.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC libelf_fsize.c -o libelf_fsize.pico
gcc -pipe -O -g    -MD -MF libelf_msize.d -MT libelf_msize.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC libelf_msize.c -o libelf_msize.pico
gcc -pipe -O -g    -MD -MF libelf_convert.d -MT libelf_convert.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC libelf_convert.c -o libelf_convert.pico
building shared object elf library
ranlib libelf_pic.a
building shared elf library (version 1)
gcc -pipe -o libelf.dll.1 -Bshareable elf.pico elf_begin.pico elf_cntl.pico elf_end.pico elf_errmsg.pico elf_errno.pico elf_data.pico elf_fill.pico elf_flag.pico elf_getarhdr.pico elf_getarsym.pico elf_getbase.pico elf_getident.pico elf_hash.pico elf_kind.pico elf_memory.pico elf_next.pico elf_open.pico elf_rand.pico elf_rawfile.pico elf_phnum.pico elf_shnum.pico elf_shstrndx.pico elf_scn.pico elf_strptr.pico elf_update.pico elf_version.pico gelf_cap.pico gelf_checksum.pico gelf_dyn.pico gelf_ehdr.pico gelf_getclass.pico gelf_fsize.pico gelf_move.pico gelf_phdr.pico gelf_rel.pico gelf_rela.pico gelf_shdr.pico gelf_sym.pico gelf_syminfo.pico gelf_symshndx.pico gelf_xlate.pico libelf_align.pico libelf_allocate.pico libelf_ar.pico libelf_ar_util.pico libelf_checksum.pico libelf_data.pico libelf_ehdr.pico libelf_elfmachine.pico libelf_extended.pico libelf_memory.pico libelf_open.pico libelf_phdr.pico libelf_shdr.pico libelf_xlate.pico libelf_fsize.pico libelf_msize.pico libelf_convert.pico
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: elf_strptr.pico: in function `elf_strptr':
C:\msys64\home\ofry\elftoolchain-githubfork\libelf/elf_strptr.c:109: undefined reference to `roundup2'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: elf_update.pico: in function `_libelf_resync_elf':
C:\msys64\home\ofry\elftoolchain-githubfork\libelf/elf_update.c:632: undefined reference to `roundup'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: elf_update.pico: in function `_libelf_compute_section_extents':
C:\msys64\home\ofry\elftoolchain-githubfork\libelf/elf_update.c:317: undefined reference to `roundup'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\msys64\home\ofry\elftoolchain-githubfork\libelf/elf_update.c:258: undefined reference to `roundup2'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: elf_update.pico: in function `_libelf_resync_elf':
C:\msys64\home\ofry\elftoolchain-githubfork\libelf/elf_update.c:679: undefined reference to `roundup'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: libelf_open.pico: in function `_libelf_open_object':
C:\msys64\home\ofry\elftoolchain-githubfork\libelf/libelf_open.c:147: undefined reference to `S_ISSOCK'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/lib/../lib/libmingw32.a(lib64_libmingw32_a-crt0_c.o): in function `main':
D:/mingwbuild/mingw-w64-crt-git/src/mingw-w64/mingw-w64-crt/crt/crt0_c.c:18: undefined reference to `WinMain'
collect2.exe: error: ld returned 1 exit status
*** Error code 1

Stop.
bmake.exe[1]: stopped in C:/msys64/home/ofry/elftoolchain-githubfork/libelf
*** Error code 1

Stop.
bmake.exe[1]: stopped in C:/msys64/home/ofry/elftoolchain-githubfork

@ofry
Copy link
Contributor Author

ofry commented Aug 10, 2020

After some fixes, I still got this error:

building shared elf library (version 1)
gcc -pipe -o libelf.dll.1 -Bshareable elf.pico elf_begin.pico elf_cntl.pico elf_end.pico elf_errmsg.pico elf_errno.pico elf_data.pico elf_fill.pico elf_flag.pico elf_getarhdr.pico elf_getarsym.pico elf_getbase.pico elf_getident.pico elf_hash.pico elf_kind.pico elf_memory.pico elf_next.pico elf_open.pico elf_rand.pico elf_rawfile.pico elf_phnum.pico elf_shnum.pico elf_shstrndx.pico elf_scn.pico elf_strptr.pico elf_update.pico elf_version.pico gelf_cap.pico gelf_checksum.pico gelf_dyn.pico gelf_ehdr.pico gelf_getclass.pico gelf_fsize.pico gelf_move.pico gelf_phdr.pico gelf_rel.pico gelf_rela.pico gelf_shdr.pico gelf_sym.pico gelf_syminfo.pico gelf_symshndx.pico gelf_xlate.pico libelf_align.pico libelf_allocate.pico libelf_ar.pico libelf_ar_util.pico libelf_checksum.pico libelf_data.pico libelf_ehdr.pico libelf_elfmachine.pico libelf_extended.pico libelf_memory.pico libelf_open.pico libelf_phdr.pico libelf_shdr.pico libelf_xlate.pico libelf_fsize.pico libelf_msize.pico libelf_convert.pico
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/lib/../lib/libmingw32.a(lib64_libmingw32_a-crt0_c.o): in function `main':
D:/mingwbuild/mingw-w64-crt-git/src/mingw-w64/mingw-w64-crt/crt/crt0_c.c:18: undefined reference to `WinMain'
collect2.exe: error: ld returned 1 exit status
*** Error code 1

@derekbruening @mati865 Any thoughts?

@derekbruening
Copy link

That's still libelf? Please see my earlier comment about not building libelf: #5859 (comment)

@ofry
Copy link
Contributor Author

ofry commented Aug 11, 2020

@derekbruening But I think same problem will be with other libraries too.

@ofry
Copy link
Contributor Author

ofry commented Aug 11, 2020

#6779 should fix this bug, though.

@ofry
Copy link
Contributor Author

ofry commented Aug 13, 2020

After merging #6779 libelf compiles fine, but libdwarf got errors in link stage.

ofry@games MINGW64 ~/elftoolchain-githubfork
$ LANG=en bmake -B
===> common
===> libelf
gcc -pipe -O -g    -MD -MF elf.d -MT elf.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c elf.c
gcc -pipe -O -g    -MD -MF elf_begin.d -MT elf_begin.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c elf_begin.c
gcc -pipe -O -g    -MD -MF elf_cntl.d -MT elf_cntl.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c elf_cntl.c
gcc -pipe -O -g    -MD -MF elf_end.d -MT elf_end.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c elf_end.c
gcc -pipe -O -g    -MD -MF elf_errmsg.d -MT elf_errmsg.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c elf_errmsg.c
gcc -pipe -O -g    -MD -MF elf_errno.d -MT elf_errno.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c elf_errno.c
gcc -pipe -O -g    -MD -MF elf_data.d -MT elf_data.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c elf_data.c
gcc -pipe -O -g    -MD -MF elf_fill.d -MT elf_fill.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c elf_fill.c
gcc -pipe -O -g    -MD -MF elf_flag.d -MT elf_flag.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c elf_flag.c
gcc -pipe -O -g    -MD -MF elf_getarhdr.d -MT elf_getarhdr.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c elf_getarhdr.c
gcc -pipe -O -g    -MD -MF elf_getarsym.d -MT elf_getarsym.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c elf_getarsym.c
gcc -pipe -O -g    -MD -MF elf_getbase.d -MT elf_getbase.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c elf_getbase.c
gcc -pipe -O -g    -MD -MF elf_getident.d -MT elf_getident.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c elf_getident.c
gcc -pipe -O -g    -MD -MF elf_hash.d -MT elf_hash.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c elf_hash.c
gcc -pipe -O -g    -MD -MF elf_kind.d -MT elf_kind.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c elf_kind.c
gcc -pipe -O -g    -MD -MF elf_memory.d -MT elf_memory.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c elf_memory.c
gcc -pipe -O -g    -MD -MF elf_next.d -MT elf_next.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c elf_next.c
gcc -pipe -O -g    -MD -MF elf_open.d -MT elf_open.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c elf_open.c
gcc -pipe -O -g    -MD -MF elf_rand.d -MT elf_rand.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c elf_rand.c
gcc -pipe -O -g    -MD -MF elf_rawfile.d -MT elf_rawfile.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c elf_rawfile.c
gcc -pipe -O -g    -MD -MF elf_phnum.d -MT elf_phnum.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c elf_phnum.c
gcc -pipe -O -g    -MD -MF elf_shnum.d -MT elf_shnum.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c elf_shnum.c
gcc -pipe -O -g    -MD -MF elf_shstrndx.d -MT elf_shstrndx.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c elf_shstrndx.c
gcc -pipe -O -g    -MD -MF elf_scn.d -MT elf_scn.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c elf_scn.c
gcc -pipe -O -g    -MD -MF elf_strptr.d -MT elf_strptr.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c elf_strptr.c
gcc -pipe -O -g    -MD -MF elf_update.d -MT elf_update.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c elf_update.c
gcc -pipe -O -g    -MD -MF elf_version.d -MT elf_version.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c elf_version.c
gcc -pipe -O -g    -MD -MF gelf_cap.d -MT gelf_cap.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c gelf_cap.c
gcc -pipe -O -g    -MD -MF gelf_checksum.d -MT gelf_checksum.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c gelf_checksum.c
gcc -pipe -O -g    -MD -MF gelf_dyn.d -MT gelf_dyn.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c gelf_dyn.c
gcc -pipe -O -g    -MD -MF gelf_ehdr.d -MT gelf_ehdr.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c gelf_ehdr.c
gcc -pipe -O -g    -MD -MF gelf_getclass.d -MT gelf_getclass.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c gelf_getclass.c
gcc -pipe -O -g    -MD -MF gelf_fsize.d -MT gelf_fsize.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c gelf_fsize.c
gcc -pipe -O -g    -MD -MF gelf_move.d -MT gelf_move.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c gelf_move.c
gcc -pipe -O -g    -MD -MF gelf_phdr.d -MT gelf_phdr.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c gelf_phdr.c
gcc -pipe -O -g    -MD -MF gelf_rel.d -MT gelf_rel.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c gelf_rel.c
gcc -pipe -O -g    -MD -MF gelf_rela.d -MT gelf_rela.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c gelf_rela.c
gcc -pipe -O -g    -MD -MF gelf_shdr.d -MT gelf_shdr.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c gelf_shdr.c
gcc -pipe -O -g    -MD -MF gelf_sym.d -MT gelf_sym.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c gelf_sym.c
gcc -pipe -O -g    -MD -MF gelf_syminfo.d -MT gelf_syminfo.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c gelf_syminfo.c
gcc -pipe -O -g    -MD -MF gelf_symshndx.d -MT gelf_symshndx.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c gelf_symshndx.c
gcc -pipe -O -g    -MD -MF gelf_xlate.d -MT gelf_xlate.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c gelf_xlate.c
gcc -pipe -O -g    -MD -MF libelf_align.d -MT libelf_align.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c libelf_align.c
gcc -pipe -O -g    -MD -MF libelf_allocate.d -MT libelf_allocate.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c libelf_allocate.c
gcc -pipe -O -g    -MD -MF libelf_ar.d -MT libelf_ar.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c libelf_ar.c
gcc -pipe -O -g    -MD -MF libelf_ar_util.d -MT libelf_ar_util.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c libelf_ar_util.c
gcc -pipe -O -g    -MD -MF libelf_checksum.d -MT libelf_checksum.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c libelf_checksum.c
gcc -pipe -O -g    -MD -MF libelf_data.d -MT libelf_data.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c libelf_data.c
gcc -pipe -O -g    -MD -MF libelf_ehdr.d -MT libelf_ehdr.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c libelf_ehdr.c
gcc -pipe -O -g    -MD -MF libelf_elfmachine.d -MT libelf_elfmachine.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c libelf_elfmachine.c
gcc -pipe -O -g    -MD -MF libelf_extended.d -MT libelf_extended.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c libelf_extended.c
gcc -pipe -O -g    -MD -MF libelf_memory.d -MT libelf_memory.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c libelf_memory.c
gcc -pipe -O -g    -MD -MF libelf_open.d -MT libelf_open.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c libelf_open.c
gcc -pipe -O -g    -MD -MF libelf_phdr.d -MT libelf_phdr.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c libelf_phdr.c
gcc -pipe -O -g    -MD -MF libelf_shdr.d -MT libelf_shdr.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c libelf_shdr.c
gcc -pipe -O -g    -MD -MF libelf_xlate.d -MT libelf_xlate.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c libelf_xlate.c
m4 -D SRCDIR=/home/ofry/elftoolchain-githubfork/libelf  libelf_fsize.m4 > libelf_fsize.c
gcc -pipe -O -g    -MD -MF libelf_fsize.d -MT libelf_fsize.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c libelf_fsize.c
m4 -D SRCDIR=/home/ofry/elftoolchain-githubfork/libelf  libelf_msize.m4 > libelf_msize.c
gcc -pipe -O -g    -MD -MF libelf_msize.d -MT libelf_msize.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c libelf_msize.c
m4 -D SRCDIR=/home/ofry/elftoolchain-githubfork/libelf  libelf_convert.m4 > libelf_convert.c
gcc -pipe -O -g    -MD -MF libelf_convert.d -MT libelf_convert.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c libelf_convert.c
building standard elf library
ranlib libelf.a
gcc -pipe -O -g    -MD -MF elf.d -MT elf.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF elf.c -o elf.po
gcc -pipe -O -g    -MD -MF elf_begin.d -MT elf_begin.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF elf_begin.c -o elf_begin.po
gcc -pipe -O -g    -MD -MF elf_cntl.d -MT elf_cntl.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF elf_cntl.c -o elf_cntl.po
gcc -pipe -O -g    -MD -MF elf_end.d -MT elf_end.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF elf_end.c -o elf_end.po
gcc -pipe -O -g    -MD -MF elf_errmsg.d -MT elf_errmsg.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF elf_errmsg.c -o elf_errmsg.po
gcc -pipe -O -g    -MD -MF elf_errno.d -MT elf_errno.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF elf_errno.c -o elf_errno.po
gcc -pipe -O -g    -MD -MF elf_data.d -MT elf_data.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF elf_data.c -o elf_data.po
gcc -pipe -O -g    -MD -MF elf_fill.d -MT elf_fill.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF elf_fill.c -o elf_fill.po
gcc -pipe -O -g    -MD -MF elf_flag.d -MT elf_flag.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF elf_flag.c -o elf_flag.po
gcc -pipe -O -g    -MD -MF elf_getarhdr.d -MT elf_getarhdr.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF elf_getarhdr.c -o elf_getarhdr.po
gcc -pipe -O -g    -MD -MF elf_getarsym.d -MT elf_getarsym.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF elf_getarsym.c -o elf_getarsym.po
gcc -pipe -O -g    -MD -MF elf_getbase.d -MT elf_getbase.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF elf_getbase.c -o elf_getbase.po
gcc -pipe -O -g    -MD -MF elf_getident.d -MT elf_getident.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF elf_getident.c -o elf_getident.po
gcc -pipe -O -g    -MD -MF elf_hash.d -MT elf_hash.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF elf_hash.c -o elf_hash.po
gcc -pipe -O -g    -MD -MF elf_kind.d -MT elf_kind.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF elf_kind.c -o elf_kind.po
gcc -pipe -O -g    -MD -MF elf_memory.d -MT elf_memory.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF elf_memory.c -o elf_memory.po
gcc -pipe -O -g    -MD -MF elf_next.d -MT elf_next.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF elf_next.c -o elf_next.po
gcc -pipe -O -g    -MD -MF elf_open.d -MT elf_open.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF elf_open.c -o elf_open.po
gcc -pipe -O -g    -MD -MF elf_rand.d -MT elf_rand.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF elf_rand.c -o elf_rand.po
gcc -pipe -O -g    -MD -MF elf_rawfile.d -MT elf_rawfile.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF elf_rawfile.c -o elf_rawfile.po
gcc -pipe -O -g    -MD -MF elf_phnum.d -MT elf_phnum.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF elf_phnum.c -o elf_phnum.po
gcc -pipe -O -g    -MD -MF elf_shnum.d -MT elf_shnum.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF elf_shnum.c -o elf_shnum.po
gcc -pipe -O -g    -MD -MF elf_shstrndx.d -MT elf_shstrndx.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF elf_shstrndx.c -o elf_shstrndx.po
gcc -pipe -O -g    -MD -MF elf_scn.d -MT elf_scn.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF elf_scn.c -o elf_scn.po
gcc -pipe -O -g    -MD -MF elf_strptr.d -MT elf_strptr.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF elf_strptr.c -o elf_strptr.po
gcc -pipe -O -g    -MD -MF elf_update.d -MT elf_update.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF elf_update.c -o elf_update.po
gcc -pipe -O -g    -MD -MF elf_version.d -MT elf_version.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF elf_version.c -o elf_version.po
gcc -pipe -O -g    -MD -MF gelf_cap.d -MT gelf_cap.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF gelf_cap.c -o gelf_cap.po
gcc -pipe -O -g    -MD -MF gelf_checksum.d -MT gelf_checksum.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF gelf_checksum.c -o gelf_checksum.po
gcc -pipe -O -g    -MD -MF gelf_dyn.d -MT gelf_dyn.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF gelf_dyn.c -o gelf_dyn.po
gcc -pipe -O -g    -MD -MF gelf_ehdr.d -MT gelf_ehdr.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF gelf_ehdr.c -o gelf_ehdr.po
gcc -pipe -O -g    -MD -MF gelf_getclass.d -MT gelf_getclass.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF gelf_getclass.c -o gelf_getclass.po
gcc -pipe -O -g    -MD -MF gelf_fsize.d -MT gelf_fsize.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF gelf_fsize.c -o gelf_fsize.po
gcc -pipe -O -g    -MD -MF gelf_move.d -MT gelf_move.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF gelf_move.c -o gelf_move.po
gcc -pipe -O -g    -MD -MF gelf_phdr.d -MT gelf_phdr.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF gelf_phdr.c -o gelf_phdr.po
gcc -pipe -O -g    -MD -MF gelf_rel.d -MT gelf_rel.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF gelf_rel.c -o gelf_rel.po
gcc -pipe -O -g    -MD -MF gelf_rela.d -MT gelf_rela.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF gelf_rela.c -o gelf_rela.po
gcc -pipe -O -g    -MD -MF gelf_shdr.d -MT gelf_shdr.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF gelf_shdr.c -o gelf_shdr.po
gcc -pipe -O -g    -MD -MF gelf_sym.d -MT gelf_sym.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF gelf_sym.c -o gelf_sym.po
gcc -pipe -O -g    -MD -MF gelf_syminfo.d -MT gelf_syminfo.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF gelf_syminfo.c -o gelf_syminfo.po
gcc -pipe -O -g    -MD -MF gelf_symshndx.d -MT gelf_symshndx.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF gelf_symshndx.c -o gelf_symshndx.po
gcc -pipe -O -g    -MD -MF gelf_xlate.d -MT gelf_xlate.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF gelf_xlate.c -o gelf_xlate.po
gcc -pipe -O -g    -MD -MF libelf_align.d -MT libelf_align.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF libelf_align.c -o libelf_align.po
gcc -pipe -O -g    -MD -MF libelf_allocate.d -MT libelf_allocate.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF libelf_allocate.c -o libelf_allocate.po
gcc -pipe -O -g    -MD -MF libelf_ar.d -MT libelf_ar.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF libelf_ar.c -o libelf_ar.po
gcc -pipe -O -g    -MD -MF libelf_ar_util.d -MT libelf_ar_util.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF libelf_ar_util.c -o libelf_ar_util.po
gcc -pipe -O -g    -MD -MF libelf_checksum.d -MT libelf_checksum.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF libelf_checksum.c -o libelf_checksum.po
gcc -pipe -O -g    -MD -MF libelf_data.d -MT libelf_data.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF libelf_data.c -o libelf_data.po
gcc -pipe -O -g    -MD -MF libelf_ehdr.d -MT libelf_ehdr.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF libelf_ehdr.c -o libelf_ehdr.po
gcc -pipe -O -g    -MD -MF libelf_elfmachine.d -MT libelf_elfmachine.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF libelf_elfmachine.c -o libelf_elfmachine.po
gcc -pipe -O -g    -MD -MF libelf_extended.d -MT libelf_extended.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF libelf_extended.c -o libelf_extended.po
gcc -pipe -O -g    -MD -MF libelf_memory.d -MT libelf_memory.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF libelf_memory.c -o libelf_memory.po
gcc -pipe -O -g    -MD -MF libelf_open.d -MT libelf_open.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF libelf_open.c -o libelf_open.po
gcc -pipe -O -g    -MD -MF libelf_phdr.d -MT libelf_phdr.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF libelf_phdr.c -o libelf_phdr.po
gcc -pipe -O -g    -MD -MF libelf_shdr.d -MT libelf_shdr.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF libelf_shdr.c -o libelf_shdr.po
gcc -pipe -O -g    -MD -MF libelf_xlate.d -MT libelf_xlate.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF libelf_xlate.c -o libelf_xlate.po
gcc -pipe -O -g    -MD -MF libelf_fsize.d -MT libelf_fsize.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF libelf_fsize.c -o libelf_fsize.po
gcc -pipe -O -g    -MD -MF libelf_msize.d -MT libelf_msize.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF libelf_msize.c -o libelf_msize.po
gcc -pipe -O -g    -MD -MF libelf_convert.d -MT libelf_convert.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -pg -DGPROF -DPROF libelf_convert.c -o libelf_convert.po
building profiled elf library
ranlib libelf_p.a
gcc -pipe -O -g    -MD -MF elf.d -MT elf.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC elf.c -o elf.pico
gcc -pipe -O -g    -MD -MF elf_begin.d -MT elf_begin.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC elf_begin.c -o elf_begin.pico
gcc -pipe -O -g    -MD -MF elf_cntl.d -MT elf_cntl.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC elf_cntl.c -o elf_cntl.pico
gcc -pipe -O -g    -MD -MF elf_end.d -MT elf_end.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC elf_end.c -o elf_end.pico
gcc -pipe -O -g    -MD -MF elf_errmsg.d -MT elf_errmsg.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC elf_errmsg.c -o elf_errmsg.pico
gcc -pipe -O -g    -MD -MF elf_errno.d -MT elf_errno.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC elf_errno.c -o elf_errno.pico
gcc -pipe -O -g    -MD -MF elf_data.d -MT elf_data.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC elf_data.c -o elf_data.pico
gcc -pipe -O -g    -MD -MF elf_fill.d -MT elf_fill.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC elf_fill.c -o elf_fill.pico
gcc -pipe -O -g    -MD -MF elf_flag.d -MT elf_flag.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC elf_flag.c -o elf_flag.pico
gcc -pipe -O -g    -MD -MF elf_getarhdr.d -MT elf_getarhdr.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC elf_getarhdr.c -o elf_getarhdr.pico
gcc -pipe -O -g    -MD -MF elf_getarsym.d -MT elf_getarsym.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC elf_getarsym.c -o elf_getarsym.pico
gcc -pipe -O -g    -MD -MF elf_getbase.d -MT elf_getbase.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC elf_getbase.c -o elf_getbase.pico
gcc -pipe -O -g    -MD -MF elf_getident.d -MT elf_getident.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC elf_getident.c -o elf_getident.pico
gcc -pipe -O -g    -MD -MF elf_hash.d -MT elf_hash.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC elf_hash.c -o elf_hash.pico
gcc -pipe -O -g    -MD -MF elf_kind.d -MT elf_kind.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC elf_kind.c -o elf_kind.pico
gcc -pipe -O -g    -MD -MF elf_memory.d -MT elf_memory.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC elf_memory.c -o elf_memory.pico
gcc -pipe -O -g    -MD -MF elf_next.d -MT elf_next.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC elf_next.c -o elf_next.pico
gcc -pipe -O -g    -MD -MF elf_open.d -MT elf_open.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC elf_open.c -o elf_open.pico
gcc -pipe -O -g    -MD -MF elf_rand.d -MT elf_rand.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC elf_rand.c -o elf_rand.pico
gcc -pipe -O -g    -MD -MF elf_rawfile.d -MT elf_rawfile.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC elf_rawfile.c -o elf_rawfile.pico
gcc -pipe -O -g    -MD -MF elf_phnum.d -MT elf_phnum.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC elf_phnum.c -o elf_phnum.pico
gcc -pipe -O -g    -MD -MF elf_shnum.d -MT elf_shnum.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC elf_shnum.c -o elf_shnum.pico
gcc -pipe -O -g    -MD -MF elf_shstrndx.d -MT elf_shstrndx.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC elf_shstrndx.c -o elf_shstrndx.pico
gcc -pipe -O -g    -MD -MF elf_scn.d -MT elf_scn.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC elf_scn.c -o elf_scn.pico
gcc -pipe -O -g    -MD -MF elf_strptr.d -MT elf_strptr.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC elf_strptr.c -o elf_strptr.pico
gcc -pipe -O -g    -MD -MF elf_update.d -MT elf_update.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC elf_update.c -o elf_update.pico
gcc -pipe -O -g    -MD -MF elf_version.d -MT elf_version.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC elf_version.c -o elf_version.pico
gcc -pipe -O -g    -MD -MF gelf_cap.d -MT gelf_cap.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC gelf_cap.c -o gelf_cap.pico
gcc -pipe -O -g    -MD -MF gelf_checksum.d -MT gelf_checksum.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC gelf_checksum.c -o gelf_checksum.pico
gcc -pipe -O -g    -MD -MF gelf_dyn.d -MT gelf_dyn.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC gelf_dyn.c -o gelf_dyn.pico
gcc -pipe -O -g    -MD -MF gelf_ehdr.d -MT gelf_ehdr.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC gelf_ehdr.c -o gelf_ehdr.pico
gcc -pipe -O -g    -MD -MF gelf_getclass.d -MT gelf_getclass.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC gelf_getclass.c -o gelf_getclass.pico
gcc -pipe -O -g    -MD -MF gelf_fsize.d -MT gelf_fsize.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC gelf_fsize.c -o gelf_fsize.pico
gcc -pipe -O -g    -MD -MF gelf_move.d -MT gelf_move.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC gelf_move.c -o gelf_move.pico
gcc -pipe -O -g    -MD -MF gelf_phdr.d -MT gelf_phdr.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC gelf_phdr.c -o gelf_phdr.pico
gcc -pipe -O -g    -MD -MF gelf_rel.d -MT gelf_rel.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC gelf_rel.c -o gelf_rel.pico
gcc -pipe -O -g    -MD -MF gelf_rela.d -MT gelf_rela.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC gelf_rela.c -o gelf_rela.pico
gcc -pipe -O -g    -MD -MF gelf_shdr.d -MT gelf_shdr.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC gelf_shdr.c -o gelf_shdr.pico
gcc -pipe -O -g    -MD -MF gelf_sym.d -MT gelf_sym.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC gelf_sym.c -o gelf_sym.pico
gcc -pipe -O -g    -MD -MF gelf_syminfo.d -MT gelf_syminfo.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC gelf_syminfo.c -o gelf_syminfo.pico
gcc -pipe -O -g    -MD -MF gelf_symshndx.d -MT gelf_symshndx.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC gelf_symshndx.c -o gelf_symshndx.pico
gcc -pipe -O -g    -MD -MF gelf_xlate.d -MT gelf_xlate.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC gelf_xlate.c -o gelf_xlate.pico
gcc -pipe -O -g    -MD -MF libelf_align.d -MT libelf_align.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC libelf_align.c -o libelf_align.pico
gcc -pipe -O -g    -MD -MF libelf_allocate.d -MT libelf_allocate.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC libelf_allocate.c -o libelf_allocate.pico
gcc -pipe -O -g    -MD -MF libelf_ar.d -MT libelf_ar.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC libelf_ar.c -o libelf_ar.pico
gcc -pipe -O -g    -MD -MF libelf_ar_util.d -MT libelf_ar_util.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC libelf_ar_util.c -o libelf_ar_util.pico
gcc -pipe -O -g    -MD -MF libelf_checksum.d -MT libelf_checksum.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC libelf_checksum.c -o libelf_checksum.pico
gcc -pipe -O -g    -MD -MF libelf_data.d -MT libelf_data.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC libelf_data.c -o libelf_data.pico
gcc -pipe -O -g    -MD -MF libelf_ehdr.d -MT libelf_ehdr.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC libelf_ehdr.c -o libelf_ehdr.pico
gcc -pipe -O -g    -MD -MF libelf_elfmachine.d -MT libelf_elfmachine.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC libelf_elfmachine.c -o libelf_elfmachine.pico
gcc -pipe -O -g    -MD -MF libelf_extended.d -MT libelf_extended.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC libelf_extended.c -o libelf_extended.pico
gcc -pipe -O -g    -MD -MF libelf_memory.d -MT libelf_memory.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC libelf_memory.c -o libelf_memory.pico
gcc -pipe -O -g    -MD -MF libelf_open.d -MT libelf_open.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC libelf_open.c -o libelf_open.pico
gcc -pipe -O -g    -MD -MF libelf_phdr.d -MT libelf_phdr.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC libelf_phdr.c -o libelf_phdr.pico
gcc -pipe -O -g    -MD -MF libelf_shdr.d -MT libelf_shdr.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC libelf_shdr.c -o libelf_shdr.pico
gcc -pipe -O -g    -MD -MF libelf_xlate.d -MT libelf_xlate.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC libelf_xlate.c -o libelf_xlate.pico
gcc -pipe -O -g    -MD -MF libelf_fsize.d -MT libelf_fsize.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC libelf_fsize.c -o libelf_fsize.pico
gcc -pipe -O -g    -MD -MF libelf_msize.d -MT libelf_msize.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC libelf_msize.c -o libelf_msize.pico
gcc -pipe -O -g    -MD -MF libelf_convert.d -MT libelf_convert.o -I. -I/home/ofry/elftoolchain-githubfork/libelf -I/home/ofry/elftoolchain-githubfork/libelf/../common -I/home/ofry/elftoolchain-githubfork/libelf/../common//C/msys64    -c -fpic -DPIC libelf_convert.c -o libelf_convert.pico
building shared object elf library
ranlib libelf_pic.a
building shared elf library (version 1)
gcc -pipe -o libelf.dll.1 -Bshareable -shared elf.pico elf_begin.pico elf_cntl.pico elf_end.pico elf_errmsg.pico elf_errno.pico elf_data.pico elf_fill.pico elf_flag.pico elf_getarhdr.pico elf_getarsym.pico elf_getbase.pico elf_getident.pico elf_hash.pico elf_kind.pico elf_memory.pico elf_next.pico elf_open.pico elf_rand.pico elf_rawfile.pico elf_phnum.pico elf_shnum.pico elf_shstrndx.pico elf_scn.pico elf_strptr.pico elf_update.pico elf_version.pico gelf_cap.pico gelf_checksum.pico gelf_dyn.pico gelf_ehdr.pico gelf_getclass.pico gelf_fsize.pico gelf_move.pico gelf_phdr.pico gelf_rel.pico gelf_rela.pico gelf_shdr.pico gelf_sym.pico gelf_syminfo.pico gelf_symshndx.pico gelf_xlate.pico libelf_align.pico libelf_allocate.pico libelf_ar.pico libelf_ar_util.pico libelf_checksum.pico libelf_data.pico libelf_ehdr.pico libelf_elfmachine.pico libelf_extended.pico libelf_memory.pico libelf_open.pico libelf_phdr.pico libelf_shdr.pico libelf_xlate.pico libelf_fsize.pico libelf_msize.pico libelf_convert.pico
rm -f libelf.dll; ln -s libelf.dll.1 libelf.dll;
nroff -man elf.3 > elf.cat3
nroff -man elf_begin.3 > elf_begin.cat3
nroff -man elf_cntl.3 > elf_cntl.cat3
nroff -man elf_end.3 > elf_end.cat3
nroff -man elf_errmsg.3 > elf_errmsg.cat3
nroff -man elf_fill.3 > elf_fill.cat3
nroff -man elf_flagdata.3 > elf_flagdata.cat3
nroff -man elf_getarhdr.3 > elf_getarhdr.cat3
nroff -man elf_getarsym.3 > elf_getarsym.cat3
nroff -man elf_getbase.3 > elf_getbase.cat3
nroff -man elf_getdata.3 > elf_getdata.cat3
nroff -man elf_getident.3 > elf_getident.cat3
nroff -man elf_getscn.3 > elf_getscn.cat3
nroff -man elf_getphdrnum.3 > elf_getphdrnum.cat3
nroff -man elf_getphnum.3 > elf_getphnum.cat3
nroff -man elf_getshdrnum.3 > elf_getshdrnum.cat3
nroff -man elf_getshnum.3 > elf_getshnum.cat3
nroff -man elf_getshdrstrndx.3 > elf_getshdrstrndx.cat3
nroff -man elf_getshstrndx.3 > elf_getshstrndx.cat3
nroff -man elf_hash.3 > elf_hash.cat3
nroff -man elf_kind.3 > elf_kind.cat3
nroff -man elf_memory.3 > elf_memory.cat3
nroff -man elf_next.3 > elf_next.cat3
nroff -man elf_open.3 > elf_open.cat3
nroff -man elf_rawfile.3 > elf_rawfile.cat3
nroff -man elf_rand.3 > elf_rand.cat3
nroff -man elf_strptr.3 > elf_strptr.cat3
nroff -man elf_update.3 > elf_update.cat3
nroff -man elf_version.3 > elf_version.cat3
nroff -man gelf.3 > gelf.cat3
nroff -man gelf_checksum.3 > gelf_checksum.cat3
nroff -man gelf_fsize.3 > gelf_fsize.cat3
nroff -man gelf_getcap.3 > gelf_getcap.cat3
nroff -man gelf_getclass.3 > gelf_getclass.cat3
nroff -man gelf_getdyn.3 > gelf_getdyn.cat3
mdoc warning: extraneous .El call (#125)
nroff -man gelf_getehdr.3 > gelf_getehdr.cat3
nroff -man gelf_getmove.3 > gelf_getmove.cat3
nroff -man gelf_getphdr.3 > gelf_getphdr.cat3
nroff -man gelf_getrel.3 > gelf_getrel.cat3
nroff -man gelf_getrela.3 > gelf_getrela.cat3
nroff -man gelf_getshdr.3 > gelf_getshdr.cat3
nroff -man gelf_getsym.3 > gelf_getsym.cat3
nroff -man gelf_getsyminfo.3 > gelf_getsyminfo.cat3
nroff -man gelf_getsymshndx.3 > gelf_getsymshndx.cat3
nroff -man gelf_newehdr.3 > gelf_newehdr.cat3
nroff -man gelf_newphdr.3 > gelf_newphdr.cat3
nroff -man gelf_update_ehdr.3 > gelf_update_ehdr.cat3
nroff -man gelf_xlatetof.3 > gelf_xlatetof.cat3
===> libdwarf
gcc -pipe -O -g    -MD -MF dwarf_abbrev.d -MT dwarf_abbrev.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c dwarf_abbrev.c
gcc -pipe -O -g    -MD -MF dwarf_arange.d -MT dwarf_arange.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c dwarf_arange.c
gcc -pipe -O -g    -MD -MF dwarf_attr.d -MT dwarf_attr.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c dwarf_attr.c
gcc -pipe -O -g    -MD -MF dwarf_attrval.d -MT dwarf_attrval.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c dwarf_attrval.c
gcc -pipe -O -g    -MD -MF dwarf_cu.d -MT dwarf_cu.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c dwarf_cu.c
gcc -pipe -O -g    -MD -MF dwarf_dealloc.d -MT dwarf_dealloc.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c dwarf_dealloc.c
gcc -pipe -O -g    -MD -MF dwarf_die.d -MT dwarf_die.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c dwarf_die.c
gcc -pipe -O -g    -MD -MF dwarf_dump.d -MT dwarf_dump.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c dwarf_dump.c
gcc -pipe -O -g    -MD -MF dwarf_errmsg.d -MT dwarf_errmsg.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c dwarf_errmsg.c
gcc -pipe -O -g    -MD -MF dwarf_finish.d -MT dwarf_finish.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c dwarf_finish.c
gcc -pipe -O -g    -MD -MF dwarf_form.d -MT dwarf_form.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c dwarf_form.c
gcc -pipe -O -g    -MD -MF dwarf_frame.d -MT dwarf_frame.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c dwarf_frame.c
m4 -D SRCDIR=/home/ofry/elftoolchain-githubfork/libdwarf  dwarf_funcs.m4 > dwarf_funcs.c
gcc -pipe -O -g    -MD -MF dwarf_funcs.d -MT dwarf_funcs.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c dwarf_funcs.c
gcc -pipe -O -g    -MD -MF dwarf_init.d -MT dwarf_init.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c dwarf_init.c
gcc -pipe -O -g    -MD -MF dwarf_lineno.d -MT dwarf_lineno.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c dwarf_lineno.c
gcc -pipe -O -g    -MD -MF dwarf_loclist.d -MT dwarf_loclist.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c dwarf_loclist.c
gcc -pipe -O -g    -MD -MF dwarf_macinfo.d -MT dwarf_macinfo.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c dwarf_macinfo.c
gcc -pipe -O -g    -MD -MF dwarf_pro_arange.d -MT dwarf_pro_arange.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c dwarf_pro_arange.c
gcc -pipe -O -g    -MD -MF dwarf_pro_attr.d -MT dwarf_pro_attr.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c dwarf_pro_attr.c
gcc -pipe -O -g    -MD -MF dwarf_pro_die.d -MT dwarf_pro_die.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c dwarf_pro_die.c
gcc -pipe -O -g    -MD -MF dwarf_pro_expr.d -MT dwarf_pro_expr.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c dwarf_pro_expr.c
gcc -pipe -O -g    -MD -MF dwarf_pro_finish.d -MT dwarf_pro_finish.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c dwarf_pro_finish.c
gcc -pipe -O -g    -MD -MF dwarf_pro_frame.d -MT dwarf_pro_frame.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c dwarf_pro_frame.c
m4 -D SRCDIR=/home/ofry/elftoolchain-githubfork/libdwarf  dwarf_pro_funcs.m4 > dwarf_pro_funcs.c
gcc -pipe -O -g    -MD -MF dwarf_pro_funcs.d -MT dwarf_pro_funcs.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c dwarf_pro_funcs.c
gcc -pipe -O -g    -MD -MF dwarf_pro_init.d -MT dwarf_pro_init.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c dwarf_pro_init.c
gcc -pipe -O -g    -MD -MF dwarf_pro_lineno.d -MT dwarf_pro_lineno.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c dwarf_pro_lineno.c
gcc -pipe -O -g    -MD -MF dwarf_pro_macinfo.d -MT dwarf_pro_macinfo.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c dwarf_pro_macinfo.c
m4 -D SRCDIR=/home/ofry/elftoolchain-githubfork/libdwarf  dwarf_pro_pubnames.m4 > dwarf_pro_pubnames.c
gcc -pipe -O -g    -MD -MF dwarf_pro_pubnames.d -MT dwarf_pro_pubnames.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c dwarf_pro_pubnames.c
gcc -pipe -O -g    -MD -MF dwarf_pro_reloc.d -MT dwarf_pro_reloc.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c dwarf_pro_reloc.c
gcc -pipe -O -g    -MD -MF dwarf_pro_sections.d -MT dwarf_pro_sections.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c dwarf_pro_sections.c
m4 -D SRCDIR=/home/ofry/elftoolchain-githubfork/libdwarf  dwarf_pro_types.m4 > dwarf_pro_types.c
gcc -pipe -O -g    -MD -MF dwarf_pro_types.d -MT dwarf_pro_types.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c dwarf_pro_types.c
m4 -D SRCDIR=/home/ofry/elftoolchain-githubfork/libdwarf  dwarf_pro_vars.m4 > dwarf_pro_vars.c
gcc -pipe -O -g    -MD -MF dwarf_pro_vars.d -MT dwarf_pro_vars.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c dwarf_pro_vars.c
m4 -D SRCDIR=/home/ofry/elftoolchain-githubfork/libdwarf  dwarf_pro_weaks.m4 > dwarf_pro_weaks.c
gcc -pipe -O -g    -MD -MF dwarf_pro_weaks.d -MT dwarf_pro_weaks.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c dwarf_pro_weaks.c
m4 -D SRCDIR=/home/ofry/elftoolchain-githubfork/libdwarf  dwarf_pubnames.m4 > dwarf_pubnames.c
gcc -pipe -O -g    -MD -MF dwarf_pubnames.d -MT dwarf_pubnames.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c dwarf_pubnames.c
m4 -D SRCDIR=/home/ofry/elftoolchain-githubfork/libdwarf  dwarf_pubtypes.m4 > dwarf_pubtypes.c
gcc -pipe -O -g    -MD -MF dwarf_pubtypes.d -MT dwarf_pubtypes.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c dwarf_pubtypes.c
gcc -pipe -O -g    -MD -MF dwarf_ranges.d -MT dwarf_ranges.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c dwarf_ranges.c
gcc -pipe -O -g    -MD -MF dwarf_reloc.d -MT dwarf_reloc.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c dwarf_reloc.c
gcc -pipe -O -g    -MD -MF dwarf_sections.d -MT dwarf_sections.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c dwarf_sections.c
gcc -pipe -O -g    -MD -MF dwarf_seterror.d -MT dwarf_seterror.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c dwarf_seterror.c
gcc -pipe -O -g    -MD -MF dwarf_str.d -MT dwarf_str.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c dwarf_str.c
m4 -D SRCDIR=/home/ofry/elftoolchain-githubfork/libdwarf  dwarf_types.m4 > dwarf_types.c
gcc -pipe -O -g    -MD -MF dwarf_types.d -MT dwarf_types.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c dwarf_types.c
m4 -D SRCDIR=/home/ofry/elftoolchain-githubfork/libdwarf  dwarf_vars.m4 > dwarf_vars.c
gcc -pipe -O -g    -MD -MF dwarf_vars.d -MT dwarf_vars.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c dwarf_vars.c
m4 -D SRCDIR=/home/ofry/elftoolchain-githubfork/libdwarf  dwarf_weaks.m4 > dwarf_weaks.c
gcc -pipe -O -g    -MD -MF dwarf_weaks.d -MT dwarf_weaks.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c dwarf_weaks.c
gcc -pipe -O -g    -MD -MF libdwarf.d -MT libdwarf.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c libdwarf.c
gcc -pipe -O -g    -MD -MF libdwarf_abbrev.d -MT libdwarf_abbrev.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c libdwarf_abbrev.c
gcc -pipe -O -g    -MD -MF libdwarf_arange.d -MT libdwarf_arange.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c libdwarf_arange.c
gcc -pipe -O -g    -MD -MF libdwarf_attr.d -MT libdwarf_attr.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c libdwarf_attr.c
gcc -pipe -O -g    -MD -MF libdwarf_die.d -MT libdwarf_die.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c libdwarf_die.c
gcc -pipe -O -g    -MD -MF libdwarf_error.d -MT libdwarf_error.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c libdwarf_error.c
gcc -pipe -O -g    -MD -MF libdwarf_elf_access.d -MT libdwarf_elf_access.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c libdwarf_elf_access.c
gcc -pipe -O -g    -MD -MF libdwarf_elf_init.d -MT libdwarf_elf_init.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c libdwarf_elf_init.c
gcc -pipe -O -g    -MD -MF libdwarf_frame.d -MT libdwarf_frame.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c libdwarf_frame.c
gcc -pipe -O -g    -MD -MF libdwarf_info.d -MT libdwarf_info.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c libdwarf_info.c
gcc -pipe -O -g    -MD -MF libdwarf_init.d -MT libdwarf_init.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c libdwarf_init.c
gcc -pipe -O -g    -MD -MF libdwarf_lineno.d -MT libdwarf_lineno.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c libdwarf_lineno.c
gcc -pipe -O -g    -MD -MF libdwarf_loc.d -MT libdwarf_loc.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c libdwarf_loc.c
gcc -pipe -O -g    -MD -MF libdwarf_loclist.d -MT libdwarf_loclist.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c libdwarf_loclist.c
gcc -pipe -O -g    -MD -MF libdwarf_macinfo.d -MT libdwarf_macinfo.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c libdwarf_macinfo.c
gcc -pipe -O -g    -MD -MF libdwarf_nametbl.d -MT libdwarf_nametbl.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c libdwarf_nametbl.c
gcc -pipe -O -g    -MD -MF libdwarf_ranges.d -MT libdwarf_ranges.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c libdwarf_ranges.c
gcc -pipe -O -g    -MD -MF libdwarf_reloc.d -MT libdwarf_reloc.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c libdwarf_reloc.c
gcc -pipe -O -g    -MD -MF libdwarf_rw.d -MT libdwarf_rw.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c libdwarf_rw.c
gcc -pipe -O -g    -MD -MF libdwarf_sections.d -MT libdwarf_sections.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c libdwarf_sections.c
gcc -pipe -O -g    -MD -MF libdwarf_str.d -MT libdwarf_str.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c libdwarf_str.c
building standard dwarf library
ranlib libdwarf.a
gcc -pipe -O -g    -MD -MF dwarf_abbrev.d -MT dwarf_abbrev.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c -pg -DGPROF -DPROF dwarf_abbrev.c -o dwarf_abbrev.po
gcc -pipe -O -g    -MD -MF dwarf_arange.d -MT dwarf_arange.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c -pg -DGPROF -DPROF dwarf_arange.c -o dwarf_arange.po
gcc -pipe -O -g    -MD -MF dwarf_attr.d -MT dwarf_attr.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c -pg -DGPROF -DPROF dwarf_attr.c -o dwarf_attr.po
gcc -pipe -O -g    -MD -MF dwarf_attrval.d -MT dwarf_attrval.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c -pg -DGPROF -DPROF dwarf_attrval.c -o dwarf_attrval.po
gcc -pipe -O -g    -MD -MF dwarf_cu.d -MT dwarf_cu.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c -pg -DGPROF -DPROF dwarf_cu.c -o dwarf_cu.po
gcc -pipe -O -g    -MD -MF dwarf_dealloc.d -MT dwarf_dealloc.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c -pg -DGPROF -DPROF dwarf_dealloc.c -o dwarf_dealloc.po
gcc -pipe -O -g    -MD -MF dwarf_die.d -MT dwarf_die.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c -pg -DGPROF -DPROF dwarf_die.c -o dwarf_die.po
gcc -pipe -O -g    -MD -MF dwarf_dump.d -MT dwarf_dump.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c -pg -DGPROF -DPROF dwarf_dump.c -o dwarf_dump.po
gcc -pipe -O -g    -MD -MF dwarf_errmsg.d -MT dwarf_errmsg.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c -pg -DGPROF -DPROF dwarf_errmsg.c -o dwarf_errmsg.po
gcc -pipe -O -g    -MD -MF dwarf_finish.d -MT dwarf_finish.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c -pg -DGPROF -DPROF dwarf_finish.c -o dwarf_finish.po
gcc -pipe -O -g    -MD -MF dwarf_form.d -MT dwarf_form.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c -pg -DGPROF -DPROF dwarf_form.c -o dwarf_form.po
gcc -pipe -O -g    -MD -MF dwarf_frame.d -MT dwarf_frame.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c -pg -DGPROF -DPROF dwarf_frame.c -o dwarf_frame.po
gcc -pipe -O -g    -MD -MF dwarf_funcs.d -MT dwarf_funcs.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c -pg -DGPROF -DPROF dwarf_funcs.c -o dwarf_funcs.po
gcc -pipe -O -g    -MD -MF dwarf_init.d -MT dwarf_init.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c -pg -DGPROF -DPROF dwarf_init.c -o dwarf_init.po
gcc -pipe -O -g    -MD -MF dwarf_lineno.d -MT dwarf_lineno.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c -pg -DGPROF -DPROF dwarf_lineno.c -o dwarf_lineno.po
gcc -pipe -O -g    -MD -MF dwarf_loclist.d -MT dwarf_loclist.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c -pg -DGPROF -DPROF dwarf_loclist.c -o dwarf_loclist.po
gcc -pipe -O -g    -MD -MF dwarf_macinfo.d -MT dwarf_macinfo.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c -pg -DGPROF -DPROF dwarf_macinfo.c -o dwarf_macinfo.po
gcc -pipe -O -g    -MD -MF dwarf_pro_arange.d -MT dwarf_pro_arange.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c -pg -DGPROF -DPROF dwarf_pro_arange.c -o dwarf_pro_arange.po
gcc -pipe -O -g    -MD -MF dwarf_pro_attr.d -MT dwarf_pro_attr.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c -pg -DGPROF -DPROF dwarf_pro_attr.c -o dwarf_pro_attr.po
gcc -pipe -O -g    -MD -MF dwarf_pro_die.d -MT dwarf_pro_die.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c -pg -DGPROF -DPROF dwarf_pro_die.c -o dwarf_pro_die.po
gcc -pipe -O -g    -MD -MF dwarf_pro_expr.d -MT dwarf_pro_expr.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c -pg -DGPROF -DPROF dwarf_pro_expr.c -o dwarf_pro_expr.po
gcc -pipe -O -g    -MD -MF dwarf_pro_finish.d -MT dwarf_pro_finish.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c -pg -DGPROF -DPROF dwarf_pro_finish.c -o dwarf_pro_finish.po
gcc -pipe -O -g    -MD -MF dwarf_pro_frame.d -MT dwarf_pro_frame.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c -pg -DGPROF -DPROF dwarf_pro_frame.c -o dwarf_pro_frame.po
gcc -pipe -O -g    -MD -MF dwarf_pro_funcs.d -MT dwarf_pro_funcs.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c -pg -DGPROF -DPROF dwarf_pro_funcs.c -o dwarf_pro_funcs.po
gcc -pipe -O -g    -MD -MF dwarf_pro_init.d -MT dwarf_pro_init.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c -pg -DGPROF -DPROF dwarf_pro_init.c -o dwarf_pro_init.po
gcc -pipe -O -g    -MD -MF dwarf_pro_lineno.d -MT dwarf_pro_lineno.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c -pg -DGPROF -DPROF dwarf_pro_lineno.c -o dwarf_pro_lineno.po
gcc -pipe -O -g    -MD -MF dwarf_pro_macinfo.d -MT dwarf_pro_macinfo.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c -pg -DGPROF -DPROF dwarf_pro_macinfo.c -o dwarf_pro_macinfo.po
gcc -pipe -O -g    -MD -MF dwarf_pro_pubnames.d -MT dwarf_pro_pubnames.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c -pg -DGPROF -DPROF dwarf_pro_pubnames.c -o dwarf_pro_pubnames.po
gcc -pipe -O -g    -MD -MF dwarf_pro_reloc.d -MT dwarf_pro_reloc.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c -pg -DGPROF -DPROF dwarf_pro_reloc.c -o dwarf_pro_reloc.po
gcc -pipe -O -g    -MD -MF dwarf_pro_sections.d -MT dwarf_pro_sections.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c -pg -DGPROF -DPROF dwarf_pro_sections.c -o dwarf_pro_sections.po
gcc -pipe -O -g    -MD -MF dwarf_pro_types.d -MT dwarf_pro_types.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c -pg -DGPROF -DPROF dwarf_pro_types.c -o dwarf_pro_types.po
gcc -pipe -O -g    -MD -MF dwarf_pro_vars.d -MT dwarf_pro_vars.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c -pg -DGPROF -DPROF dwarf_pro_vars.c -o dwarf_pro_vars.po
gcc -pipe -O -g    -MD -MF dwarf_pro_weaks.d -MT dwarf_pro_weaks.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c -pg -DGPROF -DPROF dwarf_pro_weaks.c -o dwarf_pro_weaks.po
gcc -pipe -O -g    -MD -MF dwarf_pubnames.d -MT dwarf_pubnames.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c -pg -DGPROF -DPROF dwarf_pubnames.c -o dwarf_pubnames.po
gcc -pipe -O -g    -MD -MF dwarf_pubtypes.d -MT dwarf_pubtypes.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c -pg -DGPROF -DPROF dwarf_pubtypes.c -o dwarf_pubtypes.po
gcc -pipe -O -g    -MD -MF dwarf_ranges.d -MT dwarf_ranges.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c -pg -DGPROF -DPROF dwarf_ranges.c -o dwarf_ranges.po
gcc -pipe -O -g    -MD -MF dwarf_reloc.d -MT dwarf_reloc.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c -pg -DGPROF -DPROF dwarf_reloc.c -o dwarf_reloc.po
gcc -pipe -O -g    -MD -MF dwarf_sections.d -MT dwarf_sections.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c -pg -DGPROF -DPROF dwarf_sections.c -o dwarf_sections.po
gcc -pipe -O -g    -MD -MF dwarf_seterror.d -MT dwarf_seterror.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c -pg -DGPROF -DPROF dwarf_seterror.c -o dwarf_seterror.po
gcc -pipe -O -g    -MD -MF dwarf_str.d -MT dwarf_str.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c -pg -DGPROF -DPROF dwarf_str.c -o dwarf_str.po
gcc -pipe -O -g    -MD -MF dwarf_types.d -MT dwarf_types.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c -pg -DGPROF -DPROF dwarf_types.c -o dwarf_types.po
gcc -pipe -O -g    -MD -MF dwarf_vars.d -MT dwarf_vars.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c -pg -DGPROF -DPROF dwarf_vars.c -o dwarf_vars.po
gcc -pipe -O -g    -MD -MF dwarf_weaks.d -MT dwarf_weaks.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c -pg -DGPROF -DPROF dwarf_weaks.c -o dwarf_weaks.po
gcc -pipe -O -g    -MD -MF libdwarf.d -MT libdwarf.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c -pg -DGPROF -DPROF libdwarf.c -o libdwarf.po
gcc -pipe -O -g    -MD -MF libdwarf_abbrev.d -MT libdwarf_abbrev.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c -pg -DGPROF -DPROF libdwarf_abbrev.c -o libdwarf_abbrev.po
gcc -pipe -O -g    -MD -MF libdwarf_arange.d -MT libdwarf_arange.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c -pg -DGPROF -DPROF libdwarf_arange.c -o libdwarf_arange.po
gcc -pipe -O -g    -MD -MF libdwarf_attr.d -MT libdwarf_attr.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c -pg -DGPROF -DPROF libdwarf_attr.c -o libdwarf_attr.po
gcc -pipe -O -g    -MD -MF libdwarf_die.d -MT libdwarf_die.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c -pg -DGPROF -DPROF libdwarf_die.c -o libdwarf_die.po
gcc -pipe -O -g    -MD -MF libdwarf_error.d -MT libdwarf_error.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c -pg -DGPROF -DPROF libdwarf_error.c -o libdwarf_error.po
gcc -pipe -O -g    -MD -MF libdwarf_elf_access.d -MT libdwarf_elf_access.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c -pg -DGPROF -DPROF libdwarf_elf_access.c -o libdwarf_elf_access.po
gcc -pipe -O -g    -MD -MF libdwarf_elf_init.d -MT libdwarf_elf_init.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c -pg -DGPROF -DPROF libdwarf_elf_init.c -o libdwarf_elf_init.po
gcc -pipe -O -g    -MD -MF libdwarf_frame.d -MT libdwarf_frame.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c -pg -DGPROF -DPROF libdwarf_frame.c -o libdwarf_frame.po
gcc -pipe -O -g    -MD -MF libdwarf_info.d -MT libdwarf_info.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c -pg -DGPROF -DPROF libdwarf_info.c -o libdwarf_info.po
gcc -pipe -O -g    -MD -MF libdwarf_init.d -MT libdwarf_init.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c -pg -DGPROF -DPROF libdwarf_init.c -o libdwarf_init.po
gcc -pipe -O -g    -MD -MF libdwarf_lineno.d -MT libdwarf_lineno.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c -pg -DGPROF -DPROF libdwarf_lineno.c -o libdwarf_lineno.po
gcc -pipe -O -g    -MD -MF libdwarf_loc.d -MT libdwarf_loc.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c -pg -DGPROF -DPROF libdwarf_loc.c -o libdwarf_loc.po
gcc -pipe -O -g    -MD -MF libdwarf_loclist.d -MT libdwarf_loclist.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c -pg -DGPROF -DPROF libdwarf_loclist.c -o libdwarf_loclist.po
gcc -pipe -O -g    -MD -MF libdwarf_macinfo.d -MT libdwarf_macinfo.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c -pg -DGPROF -DPROF libdwarf_macinfo.c -o libdwarf_macinfo.po
gcc -pipe -O -g    -MD -MF libdwarf_nametbl.d -MT libdwarf_nametbl.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c -pg -DGPROF -DPROF libdwarf_nametbl.c -o libdwarf_nametbl.po
gcc -pipe -O -g    -MD -MF libdwarf_ranges.d -MT libdwarf_ranges.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c -pg -DGPROF -DPROF libdwarf_ranges.c -o libdwarf_ranges.po
gcc -pipe -O -g    -MD -MF libdwarf_reloc.d -MT libdwarf_reloc.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c -pg -DGPROF -DPROF libdwarf_reloc.c -o libdwarf_reloc.po
gcc -pipe -O -g    -MD -MF libdwarf_rw.d -MT libdwarf_rw.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c -pg -DGPROF -DPROF libdwarf_rw.c -o libdwarf_rw.po
gcc -pipe -O -g    -MD -MF libdwarf_sections.d -MT libdwarf_sections.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c -pg -DGPROF -DPROF libdwarf_sections.c -o libdwarf_sections.po
gcc -pipe -O -g    -MD -MF libdwarf_str.d -MT libdwarf_str.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c -pg -DGPROF -DPROF libdwarf_str.c -o libdwarf_str.po
building profiled dwarf library
ranlib libdwarf_p.a
gcc -pipe -O -g    -MD -MF dwarf_abbrev.d -MT dwarf_abbrev.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c -fpic -DPIC dwarf_abbrev.c -o dwarf_abbrev.pico
gcc -pipe -O -g    -MD -MF dwarf_arange.d -MT dwarf_arange.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c -fpic -DPIC dwarf_arange.c -o dwarf_arange.pico
gcc -pipe -O -g    -MD -MF dwarf_attr.d -MT dwarf_attr.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c -fpic -DPIC dwarf_attr.c -o dwarf_attr.pico
gcc -pipe -O -g    -MD -MF dwarf_attrval.d -MT dwarf_attrval.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c -fpic -DPIC dwarf_attrval.c -o dwarf_attrval.pico
gcc -pipe -O -g    -MD -MF dwarf_cu.d -MT dwarf_cu.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c -fpic -DPIC dwarf_cu.c -o dwarf_cu.pico
gcc -pipe -O -g    -MD -MF dwarf_dealloc.d -MT dwarf_dealloc.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c -fpic -DPIC dwarf_dealloc.c -o dwarf_dealloc.pico
gcc -pipe -O -g    -MD -MF dwarf_die.d -MT dwarf_die.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c -fpic -DPIC dwarf_die.c -o dwarf_die.pico
gcc -pipe -O -g    -MD -MF dwarf_dump.d -MT dwarf_dump.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c -fpic -DPIC dwarf_dump.c -o dwarf_dump.pico
gcc -pipe -O -g    -MD -MF dwarf_errmsg.d -MT dwarf_errmsg.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c -fpic -DPIC dwarf_errmsg.c -o dwarf_errmsg.pico
gcc -pipe -O -g    -MD -MF dwarf_finish.d -MT dwarf_finish.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c -fpic -DPIC dwarf_finish.c -o dwarf_finish.pico
gcc -pipe -O -g    -MD -MF dwarf_form.d -MT dwarf_form.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c -fpic -DPIC dwarf_form.c -o dwarf_form.pico
gcc -pipe -O -g    -MD -MF dwarf_frame.d -MT dwarf_frame.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c -fpic -DPIC dwarf_frame.c -o dwarf_frame.pico
gcc -pipe -O -g    -MD -MF dwarf_funcs.d -MT dwarf_funcs.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c -fpic -DPIC dwarf_funcs.c -o dwarf_funcs.pico
gcc -pipe -O -g    -MD -MF dwarf_init.d -MT dwarf_init.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c -fpic -DPIC dwarf_init.c -o dwarf_init.pico
gcc -pipe -O -g    -MD -MF dwarf_lineno.d -MT dwarf_lineno.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c -fpic -DPIC dwarf_lineno.c -o dwarf_lineno.pico
gcc -pipe -O -g    -MD -MF dwarf_loclist.d -MT dwarf_loclist.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c -fpic -DPIC dwarf_loclist.c -o dwarf_loclist.pico
gcc -pipe -O -g    -MD -MF dwarf_macinfo.d -MT dwarf_macinfo.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c -fpic -DPIC dwarf_macinfo.c -o dwarf_macinfo.pico
gcc -pipe -O -g    -MD -MF dwarf_pro_arange.d -MT dwarf_pro_arange.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c -fpic -DPIC dwarf_pro_arange.c -o dwarf_pro_arange.pico
gcc -pipe -O -g    -MD -MF dwarf_pro_attr.d -MT dwarf_pro_attr.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c -fpic -DPIC dwarf_pro_attr.c -o dwarf_pro_attr.pico
gcc -pipe -O -g    -MD -MF dwarf_pro_die.d -MT dwarf_pro_die.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c -fpic -DPIC dwarf_pro_die.c -o dwarf_pro_die.pico
gcc -pipe -O -g    -MD -MF dwarf_pro_expr.d -MT dwarf_pro_expr.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c -fpic -DPIC dwarf_pro_expr.c -o dwarf_pro_expr.pico
gcc -pipe -O -g    -MD -MF dwarf_pro_finish.d -MT dwarf_pro_finish.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c -fpic -DPIC dwarf_pro_finish.c -o dwarf_pro_finish.pico
gcc -pipe -O -g    -MD -MF dwarf_pro_frame.d -MT dwarf_pro_frame.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c -fpic -DPIC dwarf_pro_frame.c -o dwarf_pro_frame.pico
gcc -pipe -O -g    -MD -MF dwarf_pro_funcs.d -MT dwarf_pro_funcs.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c -fpic -DPIC dwarf_pro_funcs.c -o dwarf_pro_funcs.pico
gcc -pipe -O -g    -MD -MF dwarf_pro_init.d -MT dwarf_pro_init.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c -fpic -DPIC dwarf_pro_init.c -o dwarf_pro_init.pico
gcc -pipe -O -g    -MD -MF dwarf_pro_lineno.d -MT dwarf_pro_lineno.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c -fpic -DPIC dwarf_pro_lineno.c -o dwarf_pro_lineno.pico
gcc -pipe -O -g    -MD -MF dwarf_pro_macinfo.d -MT dwarf_pro_macinfo.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c -fpic -DPIC dwarf_pro_macinfo.c -o dwarf_pro_macinfo.pico
gcc -pipe -O -g    -MD -MF dwarf_pro_pubnames.d -MT dwarf_pro_pubnames.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c -fpic -DPIC dwarf_pro_pubnames.c -o dwarf_pro_pubnames.pico
gcc -pipe -O -g    -MD -MF dwarf_pro_reloc.d -MT dwarf_pro_reloc.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c -fpic -DPIC dwarf_pro_reloc.c -o dwarf_pro_reloc.pico
gcc -pipe -O -g    -MD -MF dwarf_pro_sections.d -MT dwarf_pro_sections.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c -fpic -DPIC dwarf_pro_sections.c -o dwarf_pro_sections.pico
gcc -pipe -O -g    -MD -MF dwarf_pro_types.d -MT dwarf_pro_types.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c -fpic -DPIC dwarf_pro_types.c -o dwarf_pro_types.pico
gcc -pipe -O -g    -MD -MF dwarf_pro_vars.d -MT dwarf_pro_vars.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c -fpic -DPIC dwarf_pro_vars.c -o dwarf_pro_vars.pico
gcc -pipe -O -g    -MD -MF dwarf_pro_weaks.d -MT dwarf_pro_weaks.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c -fpic -DPIC dwarf_pro_weaks.c -o dwarf_pro_weaks.pico
gcc -pipe -O -g    -MD -MF dwarf_pubnames.d -MT dwarf_pubnames.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c -fpic -DPIC dwarf_pubnames.c -o dwarf_pubnames.pico
gcc -pipe -O -g    -MD -MF dwarf_pubtypes.d -MT dwarf_pubtypes.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c -fpic -DPIC dwarf_pubtypes.c -o dwarf_pubtypes.pico
gcc -pipe -O -g    -MD -MF dwarf_ranges.d -MT dwarf_ranges.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c -fpic -DPIC dwarf_ranges.c -o dwarf_ranges.pico
gcc -pipe -O -g    -MD -MF dwarf_reloc.d -MT dwarf_reloc.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c -fpic -DPIC dwarf_reloc.c -o dwarf_reloc.pico
gcc -pipe -O -g    -MD -MF dwarf_sections.d -MT dwarf_sections.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c -fpic -DPIC dwarf_sections.c -o dwarf_sections.pico
gcc -pipe -O -g    -MD -MF dwarf_seterror.d -MT dwarf_seterror.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c -fpic -DPIC dwarf_seterror.c -o dwarf_seterror.pico
gcc -pipe -O -g    -MD -MF dwarf_str.d -MT dwarf_str.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c -fpic -DPIC dwarf_str.c -o dwarf_str.pico
gcc -pipe -O -g    -MD -MF dwarf_types.d -MT dwarf_types.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c -fpic -DPIC dwarf_types.c -o dwarf_types.pico
gcc -pipe -O -g    -MD -MF dwarf_vars.d -MT dwarf_vars.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c -fpic -DPIC dwarf_vars.c -o dwarf_vars.pico
gcc -pipe -O -g    -MD -MF dwarf_weaks.d -MT dwarf_weaks.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c -fpic -DPIC dwarf_weaks.c -o dwarf_weaks.pico
gcc -pipe -O -g    -MD -MF libdwarf.d -MT libdwarf.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c -fpic -DPIC libdwarf.c -o libdwarf.pico
gcc -pipe -O -g    -MD -MF libdwarf_abbrev.d -MT libdwarf_abbrev.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c -fpic -DPIC libdwarf_abbrev.c -o libdwarf_abbrev.pico
gcc -pipe -O -g    -MD -MF libdwarf_arange.d -MT libdwarf_arange.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c -fpic -DPIC libdwarf_arange.c -o libdwarf_arange.pico
gcc -pipe -O -g    -MD -MF libdwarf_attr.d -MT libdwarf_attr.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c -fpic -DPIC libdwarf_attr.c -o libdwarf_attr.pico
gcc -pipe -O -g    -MD -MF libdwarf_die.d -MT libdwarf_die.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c -fpic -DPIC libdwarf_die.c -o libdwarf_die.pico
gcc -pipe -O -g    -MD -MF libdwarf_error.d -MT libdwarf_error.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c -fpic -DPIC libdwarf_error.c -o libdwarf_error.pico
gcc -pipe -O -g    -MD -MF libdwarf_elf_access.d -MT libdwarf_elf_access.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c -fpic -DPIC libdwarf_elf_access.c -o libdwarf_elf_access.pico
gcc -pipe -O -g    -MD -MF libdwarf_elf_init.d -MT libdwarf_elf_init.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c -fpic -DPIC libdwarf_elf_init.c -o libdwarf_elf_init.pico
gcc -pipe -O -g    -MD -MF libdwarf_frame.d -MT libdwarf_frame.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c -fpic -DPIC libdwarf_frame.c -o libdwarf_frame.pico
gcc -pipe -O -g    -MD -MF libdwarf_info.d -MT libdwarf_info.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c -fpic -DPIC libdwarf_info.c -o libdwarf_info.pico
gcc -pipe -O -g    -MD -MF libdwarf_init.d -MT libdwarf_init.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c -fpic -DPIC libdwarf_init.c -o libdwarf_init.pico
gcc -pipe -O -g    -MD -MF libdwarf_lineno.d -MT libdwarf_lineno.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c -fpic -DPIC libdwarf_lineno.c -o libdwarf_lineno.pico
gcc -pipe -O -g    -MD -MF libdwarf_loc.d -MT libdwarf_loc.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c -fpic -DPIC libdwarf_loc.c -o libdwarf_loc.pico
gcc -pipe -O -g    -MD -MF libdwarf_loclist.d -MT libdwarf_loclist.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c -fpic -DPIC libdwarf_loclist.c -o libdwarf_loclist.pico
gcc -pipe -O -g    -MD -MF libdwarf_macinfo.d -MT libdwarf_macinfo.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c -fpic -DPIC libdwarf_macinfo.c -o libdwarf_macinfo.pico
gcc -pipe -O -g    -MD -MF libdwarf_nametbl.d -MT libdwarf_nametbl.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c -fpic -DPIC libdwarf_nametbl.c -o libdwarf_nametbl.pico
gcc -pipe -O -g    -MD -MF libdwarf_ranges.d -MT libdwarf_ranges.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c -fpic -DPIC libdwarf_ranges.c -o libdwarf_ranges.pico
gcc -pipe -O -g    -MD -MF libdwarf_reloc.d -MT libdwarf_reloc.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c -fpic -DPIC libdwarf_reloc.c -o libdwarf_reloc.pico
gcc -pipe -O -g    -MD -MF libdwarf_rw.d -MT libdwarf_rw.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c -fpic -DPIC libdwarf_rw.c -o libdwarf_rw.pico
gcc -pipe -O -g    -MD -MF libdwarf_sections.d -MT libdwarf_sections.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c -fpic -DPIC libdwarf_sections.c -o libdwarf_sections.pico
gcc -pipe -O -g    -MD -MF libdwarf_str.d -MT libdwarf_str.o -I. -I/home/ofry/elftoolchain-githubfork/libdwarf -I/home/ofry/elftoolchain-githubfork/libdwarf/../common -I/home/ofry/elftoolchain-githubfork/libdwarf/../common//C/msys64 -I/home/ofry/elftoolchain-githubfork/libdwarf/../libelf    -c -fpic -DPIC libdwarf_str.c -o libdwarf_str.pico
building shared object dwarf library
ranlib libdwarf_pic.a
building shared dwarf library (version 3)
gcc -pipe -o libdwarf.dll.3 -Bshareable -shared dwarf_abbrev.pico dwarf_arange.pico dwarf_attr.pico dwarf_attrval.pico dwarf_cu.pico dwarf_dealloc.pico dwarf_die.pico dwarf_dump.pico dwarf_errmsg.pico dwarf_finish.pico dwarf_form.pico dwarf_frame.pico dwarf_funcs.pico dwarf_init.pico dwarf_lineno.pico dwarf_loclist.pico dwarf_macinfo.pico dwarf_pro_arange.pico dwarf_pro_attr.pico dwarf_pro_die.pico dwarf_pro_expr.pico dwarf_pro_finish.pico dwarf_pro_frame.pico dwarf_pro_funcs.pico dwarf_pro_init.pico dwarf_pro_lineno.pico dwarf_pro_macinfo.pico dwarf_pro_pubnames.pico dwarf_pro_reloc.pico dwarf_pro_sections.pico dwarf_pro_types.pico dwarf_pro_vars.pico dwarf_pro_weaks.pico dwarf_pubnames.pico dwarf_pubtypes.pico dwarf_ranges.pico dwarf_reloc.pico dwarf_sections.pico dwarf_seterror.pico dwarf_str.pico dwarf_types.pico dwarf_vars.pico dwarf_weaks.pico libdwarf.pico libdwarf_abbrev.pico libdwarf_arange.pico libdwarf_attr.pico libdwarf_die.pico libdwarf_error.pico libdwarf_elf_access.pico libdwarf_elf_init.pico libdwarf_frame.pico libdwarf_info.pico libdwarf_init.pico libdwarf_lineno.pico libdwarf_loc.pico libdwarf_loclist.pico libdwarf_macinfo.pico libdwarf_nametbl.pico libdwarf_ranges.pico libdwarf_reloc.pico libdwarf_rw.pico libdwarf_sections.pico libdwarf_str.pico
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: dwarf_errmsg.pico: in function `dwarf_errmsg_':
C:\msys64\home\ofry\elftoolchain-githubfork\libdwarf/dwarf_errmsg.c:82: undefined reference to `elf_errmsg'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: dwarf_init.pico: in function `dwarf_init':
C:\msys64\home\ofry\elftoolchain-githubfork\libdwarf/dwarf_init.c:106: undefined reference to `elf_version'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\msys64\home\ofry\elftoolchain-githubfork\libdwarf/dwarf_init.c:111: undefined reference to `elf_begin'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\msys64\home\ofry\elftoolchain-githubfork\libdwarf/dwarf_init.c:107: undefined reference to `elf_errno'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\msys64\home\ofry\elftoolchain-githubfork\libdwarf/dwarf_init.c:112: undefined reference to `elf_errno'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: libdwarf_elf_access.pico: in function `_dwarf_elf_get_section_info':
C:\msys64\home\ofry\elftoolchain-githubfork\libdwarf/libdwarf_elf_access.c:58: undefined reference to `elf_strptr'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: libdwarf_elf_access.pico: in function `_dwarf_elf_get_length_size':
C:\msys64\home\ofry\elftoolchain-githubfork\libdwarf/libdwarf_elf_access.c:95: undefined reference to `gelf_getclass'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: libdwarf_elf_access.pico: in function `_dwarf_elf_get_pointer_size':
C:\msys64\home\ofry\elftoolchain-githubfork\libdwarf/libdwarf_elf_access.c:111: undefined reference to `gelf_getclass'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: libdwarf_elf_init.pico: in function `_dwarf_elf_init':
C:\msys64\home\ofry\elftoolchain-githubfork\libdwarf/libdwarf_elf_init.c:237: undefined reference to `gelf_getehdr'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\msys64\home\ofry\elftoolchain-githubfork\libdwarf/libdwarf_elf_init.c:245: undefined reference to `elf_getshstrndx'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\msys64\home\ofry\elftoolchain-githubfork\libdwarf/libdwarf_elf_init.c:255: undefined reference to `elf_errno'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\msys64\home\ofry\elftoolchain-githubfork\libdwarf/libdwarf_elf_init.c:238: undefined reference to `elf_errno'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\msys64\home\ofry\elftoolchain-githubfork\libdwarf/libdwarf_elf_init.c:246: undefined reference to `elf_errno'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\msys64\home\ofry\elftoolchain-githubfork\libdwarf/libdwarf_elf_init.c:258: undefined reference to `elf_errno'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\msys64\home\ofry\elftoolchain-githubfork\libdwarf/libdwarf_elf_init.c:265: undefined reference to `elf_errno'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\msys64\home\ofry\elftoolchain-githubfork\libdwarf/libdwarf_elf_init.c:256: undefined reference to `elf_nextscn'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\msys64\home\ofry\elftoolchain-githubfork\libdwarf/libdwarf_elf_init.c:257: undefined reference to `gelf_getshdr'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\msys64\home\ofry\elftoolchain-githubfork\libdwarf/libdwarf_elf_init.c:263: undefined reference to `elf_strptr'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\msys64\home\ofry\elftoolchain-githubfork\libdwarf/libdwarf_elf_init.c:271: undefined reference to `elf_ndxscn'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\msys64\home\ofry\elftoolchain-githubfork\libdwarf/libdwarf_elf_init.c:272: undefined reference to `elf_getdata'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\msys64\home\ofry\elftoolchain-githubfork\libdwarf/libdwarf_elf_init.c:273: undefined reference to `elf_errno'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\msys64\home\ofry\elftoolchain-githubfork\libdwarf/libdwarf_elf_init.c:289: undefined reference to `elf_errno'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\msys64\home\ofry\elftoolchain-githubfork\libdwarf/libdwarf_elf_init.c:291: undefined reference to `elf_errno'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\msys64\home\ofry\elftoolchain-githubfork\libdwarf/libdwarf_elf_init.c:311: undefined reference to `elf_errno'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\msys64\home\ofry\elftoolchain-githubfork\libdwarf/libdwarf_elf_init.c:320: undefined reference to `elf_errno'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: libdwarf_elf_init.pico:C:\msys64\home\ofry\elftoolchain-githubfork\libdwarf/libdwarf_elf_init.c:332: more undefined references to `elf_errno' follow
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: libdwarf_elf_init.pico: in function `_dwarf_elf_apply_rel_reloc':
C:\msys64\home\ofry\elftoolchain-githubfork\libdwarf/libdwarf_elf_init.c:65: undefined reference to `gelf_getrel'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\msys64\home\ofry\elftoolchain-githubfork\libdwarf/libdwarf_elf_init.c:69: undefined reference to `gelf_getsym'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: libdwarf_elf_init.pico: in function `_dwarf_elf_apply_rela_reloc':
C:\msys64\home\ofry\elftoolchain-githubfork\libdwarf/libdwarf_elf_init.c:107: undefined reference to `gelf_getrela'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\msys64\home\ofry\elftoolchain-githubfork\libdwarf/libdwarf_elf_init.c:111: undefined reference to `gelf_getsym'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: libdwarf_elf_init.pico: in function `_dwarf_elf_relocate':
C:\msys64\home\ofry\elftoolchain-githubfork\libdwarf/libdwarf_elf_init.c:190: undefined reference to `elf_errno'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: libdwarf_elf_init.pico: in function `_dwarf_elf_init':
C:\msys64\home\ofry\elftoolchain-githubfork\libdwarf/libdwarf_elf_init.c:329: undefined reference to `elf_errno'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\msys64\home\ofry\elftoolchain-githubfork\libdwarf/libdwarf_elf_init.c:330: undefined reference to `elf_getdata'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\msys64\home\ofry\elftoolchain-githubfork\libdwarf/libdwarf_elf_init.c:342: undefined reference to `elf_ndxscn'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: libdwarf_elf_init.pico: in function `_dwarf_elf_relocate':
C:\msys64\home\ofry\elftoolchain-githubfork\libdwarf/libdwarf_elf_init.c:143: undefined reference to `gelf_getehdr'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\msys64\home\ofry\elftoolchain-githubfork\libdwarf/libdwarf_elf_init.c:149: undefined reference to `elf_errno'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\msys64\home\ofry\elftoolchain-githubfork\libdwarf/libdwarf_elf_init.c:150: undefined reference to `elf_nextscn'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\msys64\home\ofry\elftoolchain-githubfork\libdwarf/libdwarf_elf_init.c:151: undefined reference to `gelf_getshdr'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\msys64\home\ofry\elftoolchain-githubfork\libdwarf/libdwarf_elf_init.c:161: undefined reference to `elf_getdata'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\msys64\home\ofry\elftoolchain-githubfork\libdwarf/libdwarf_elf_init.c:192: undefined reference to `elf_errno'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: libdwarf_elf_init.pico: in function `_dwarf_elf_init':
C:\msys64\home\ofry\elftoolchain-githubfork\libdwarf/libdwarf_elf_init.c:309: undefined reference to `elf_nextscn'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\msys64\home\ofry\elftoolchain-githubfork\libdwarf/libdwarf_elf_init.c:310: undefined reference to `gelf_getshdr'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\msys64\home\ofry\elftoolchain-githubfork\libdwarf/libdwarf_elf_init.c:318: undefined reference to `elf_strptr'
collect2.exe: error: ld returned 1 exit status
*** Error code 1

Stop.
bmake.exe[1]: stopped in C:/msys64/home/ofry/elftoolchain-githubfork/libdwarf
*** Error code 1

Stop.
bmake.exe[1]: stopped in C:/msys64/home/ofry/elftoolchain-githubfork

@derekbruening @mati865 Any thoughts?

@mati865
Copy link
Collaborator

mati865 commented Aug 13, 2020

Those missing symbols are provided by elftoolchain/libelf, I don't know why it's not linked.

@derekbruening
Copy link

You do not want to include any ELF files, nor link with libelf. Remove libdwarf_elf_access.c and libdwarf_elf_init.c from the build. That is what the PECOFF build of libelftc is already doing, as you can see in the checked-in patch inside DR.

@derekbruening
Copy link

I see that this issue's title is "elf toolchain", but if the goal is to build what DR needs, that's a BSD-licensed libdwarf plus a demangling library, not an elf toolchain.

@ofry
Copy link
Contributor Author

ofry commented Aug 15, 2020

@mati865 It should be fixed with #6802

@derekbruening I have second goal: catch and fix some bugs in core build rules set which makes bmake unusable even with working bmake.exe

@derekbruening
Copy link

@derekbruening I have second goal: catch and fix some bugs in core build rules set which makes bmake unusable even with working bmake.exe

Not sure what you mean: DR's "core/" directory uses CMake, which can generate Makefiles (along with other build system files). If those don't work with bmake: that would be a CMake issue, not a DR issue. If you mean the libelftc build rules, that would involve that project, not DR.

@ofry
Copy link
Contributor Author

ofry commented Aug 27, 2020

Now all libraries builds fine through bmake. I'll close this issue for favor to DynamoRIO/dynamorio#4422

@ofry ofry closed this as completed Aug 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants