Fam Zheng c261d774fb rules.mak: Fix DSO build by pulling in archive symbols
This fixes an issue with module build system. block/iscsi.so is
currently broken:

    $ ~/build/last/qemu-img
    Failed to open module: /home/fam/build/master/block-iscsi.so:
    undefined symbol: qmp_query_uuid
    qemu-img: Not enough arguments
    Try 'qemu-img --help' for more information

To fix this, we should (at least) let qemu-img link qmp_query_uuid from
libqemustub.a. (There are a few other symbols missing, as well.)

This patch changes the linking rules to:

1) Build ".mo" with "ld -r -o $@ $^" for each ".so", and later build .so
   with it.

2) Always build all the .mo before linking the executables. This is
   achieved by adding those .mo files to the executables' "-y"
   variables.

3) When linking an executable, those .mo files in its "-y" variables are
   filtered out, and replaced by one or more -Wl,-u,$symbol flags. This
   is done in the added macro "process-archive-undefs".

   These "-Wl,-u,$symbol" flags will force ld to pull in the function
   definition from the archives when linking.

   Note that the .mo objects, that are actually meant to be linked in
   the executables, are already expanded in unnest-vars, before the
   linking command. So we are safe to simply filter out .mo for the
   purpose of pulling undefined symbols.

   process-archive-undefs works as this: For each ".mo", find all the
   undefined symbols in it, filter ones that are defined in the
   archives. For each of these symbols, generate a "-Wl,-u,$symbol" in
   the link command, and put them before archive names in the command
   line.

Suggested-by: H.J. Lu <hjl.tools@gmail.com>
Signed-off-by: Fam Zheng <famz@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2014-09-09 13:13:05 +02:00
2014-08-20 21:15:56 +02:00
2014-06-23 11:00:12 -04:00
2014-09-04 17:39:07 +01:00
2014-08-26 13:52:15 +01:00
2014-09-02 22:38:16 +04:00
2014-08-18 14:39:10 -04:00
2014-08-24 13:16:32 +04:00
2014-08-29 18:40:04 +01:00
2014-06-16 13:24:35 +02:00
2014-06-09 15:43:40 +02:00
2014-08-29 10:46:58 +01:00
2014-08-29 10:46:58 +01:00
2014-08-29 10:46:58 +01:00
2014-06-23 11:12:28 -04:00
2014-08-29 10:46:58 +01:00
2014-07-14 12:03:21 +02:00
2014-09-02 22:38:16 +04:00
2014-06-19 18:44:21 +03:00
2014-09-09 13:13:05 +02:00
2014-06-19 16:41:54 +03:00
2014-08-15 16:37:17 +01:00
2014-08-15 16:37:17 +01:00
2014-06-23 19:09:50 +02:00
2014-08-18 14:39:10 -04:00
2014-08-29 10:48:45 +01:00
2014-09-02 22:38:16 +04:00
2014-08-15 18:44:48 +01:00
2014-05-24 00:07:29 +04:00
2014-09-02 16:07:31 +01:00
2014-08-06 17:53:07 +02:00
2014-06-05 16:10:33 +02:00
2014-08-01 18:30:08 +01:00
2014-09-04 16:14:47 +02:00
2014-05-07 16:16:43 +00:00
2014-07-07 10:37:40 +00:00

Read the documentation in qemu-doc.html or on http://wiki.qemu-project.org

- QEMU team
Description
QEMU With E2K User Support
Readme 459 MiB
Languages
C 83.1%
C++ 6.3%
Python 3.2%
Dylan 2.8%
Shell 1.6%
Other 2.8%