• Alessandro Rubini's avatar
    tool/wrpc-dump: change the access mode, to avoid "gcc -m32" · 1a18111c
    Alessandro Rubini authored
    Accessing data structures in the host to get target fields is broken:
    we may have different data size or alignment, or whatever. The hack
    of using "-m32" to be able to access lm32 fields from x86-64 is not
    clean (we imply the i386 and target have the same size/alignment).
    Even worse, not everybody has an x86-64 cross-compiler for i386.
    
    Thus, we use OFFSET_OF in the target, with the lm32 cross compiler,
    to build a binary table that is then accessed by the host.
    
    In order to link the data structure in the host we use the assembler
    instead of objcopy. With objcopy we'd need to spell out the bfd name
    of the host, and we'd get horrible names like
       struct dump_info _binary_dump_info_host_bin_start[];
    Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
    1a18111c
Name
Last commit
Last update
arch/lm32 Loading commit data...
boards/arria Loading commit data...
configs Loading commit data...
dev Loading commit data...
doc Loading commit data...
include Loading commit data...
ipc Loading commit data...
lib Loading commit data...
monitor Loading commit data...
pp_printf Loading commit data...
ppsi @ b203cc96
scripts Loading commit data...
sdb-lib Loading commit data...
shell Loading commit data...
softpll Loading commit data...
tools Loading commit data...
.gitignore Loading commit data...
.gitmodules Loading commit data...
COPYING Loading commit data...
Kconfig Loading commit data...
MAKEALL Loading commit data...
Makefile Loading commit data...
Makefile.kconfig Loading commit data...
bigobj.lds Loading commit data...
check-error.c Loading commit data...
dump-info.c Loading commit data...
revision.c Loading commit data...
system_checks.c Loading commit data...
wrc_main.c Loading commit data...
wrc_ptp.h Loading commit data...
wrs_main.c Loading commit data...