walnux/binfmt
Gregory Nutt 67ec3d7926 Remove CONFIG_CAN_PASS_STRUCT
This commit resolves issue #620:

Remove CONFIG_CAN_PASS_STRUCTS #620

The configuration option CONFIG_CAN_PASS_STRUCTS was added many years ago to support an old version of the SDCC compiler. That compiler is currently used only with the Z80 and Z180 targets. The limitation of that old compiler was that it could not pass structures or unions as either inputs or outputs. For example:

    #ifdef CONFIG_CAN_PASS_STRUCTS
    struct mallinfo mallinfo(void);
    #else
    int      mallinfo(FAR struct mallinfo *info);
    #endif

And even leads to violation of a few POSIX interfaces like:

    #ifdef CONFIG_CAN_PASS_STRUCTS
    int  sigqueue(int pid, int signo, union sigval value);
    #else
    int  sigqueue(int pid, int signo, FAR void *sival_ptr);
    #endif

This breaks the 1st INVIOLABLES rule:

Strict POSIX compliance
-----------------------

  o Strict conformance to the portable standard OS interface as defined at
    OpenGroup.org.
  o A deeply embedded system requires some special support.  Special
    support must be minimized.
  o The portable interface must never be compromised only for the sake of
    expediency.
  o Expediency or even improved performance are not justifications for
   violation of the strict POSIX interface

Also, it appears that the current SDCC compilers have resolve this issue and so, perhaps, this is no longer a problem: z88dk/z88dk#1132

NOTE:  This commit cannot pass the PR checks because it depends on matching changes to the apps/ directory.
2020-04-11 21:19:47 +01:00
..
libelf Kconfig: Move ELF_64BIT out of !BINFMT_DISABLE 2020-03-27 00:04:36 -05:00
libnxflat Remove CONFIG_CAN_PASS_STRUCT 2020-04-11 21:19:47 +01:00
.gitignore Revert "Don't generate .depend anymore" 2020-03-22 23:07:29 -05:00
binfmt.h Run codespell -w with the latest dictonary again 2020-02-23 22:27:46 +01:00
binfmt_copyargv.c Run codespell -w with the latest dictonary again 2020-02-23 22:27:46 +01:00
binfmt_dumpmodule.c binfmt/: Change debug macro from berr() to binfo() when dumping module data. The report of problems is important during development but when it enables complete informative output about load binaries then the important information can be easily overlooked. The huge output sent to serial terminal slows loading significantly as well. 2019-08-15 14:41:42 -06:00
binfmt_exec.c binfmt/exec: fix build break in kernel build 2020-02-22 14:32:54 -06:00
binfmt_execmodule.c include/nuttx/sched.h: Move prototype for sched_releasetcb() 2020-03-26 14:12:34 -03:00
binfmt_execsymtab.c Ensure all source code end with one and only one newline 2020-02-08 07:25:56 -06:00
binfmt_exit.c binfmt/ and sched/group: Re-architect the way that loadable ELF or NXFLAT modules are unloaded. Memory resources must be recovered when the task loaded into memory exits. The originmal implementatino used the death-of-child SIGCHLD signal to perform the unload. There are several problems with this: It is overly complex, it requires that the parent task stay resident while the loaded task runs, and it has fatal logic flaws in the protected and kernel model builds because the user signal handler attempts to run in the kernel address space. This commit corrects with using a mindlessly simply BINFMT callback when the task exits. 2018-08-05 08:09:54 -06:00
binfmt_globals.c Revert "A workaround for macOS linker" 2020-02-05 00:36:58 -08:00
binfmt_initialize.c Remove all support for the ancient Pascal compiler and pcode interpreter. 2019-11-21 06:58:38 -06:00
binfmt_loadmodule.c binfmt/ and libs/libc: Make exepath_*() more common: 2018-11-08 07:27:14 -06:00
binfmt_register.c Remove exra whitespace from files (#189) 2020-01-31 09:24:49 -06:00
binfmt_unloadmodule.c Remove exra whitespace from files (#189) 2020-01-31 09:24:49 -06:00
binfmt_unregister.c Remove exra whitespace from files (#189) 2020-01-31 09:24:49 -06:00
builtin.c Remove exra whitespace from files (#189) 2020-01-31 09:24:49 -06:00
elf.c ELF64 support (#220) 2020-02-07 17:10:23 -06:00
Kconfig Kconfig: Move ELF_64BIT out of !BINFMT_DISABLE 2020-03-27 00:04:36 -05:00
Makefile include/nuttx/sched.h: Move prototype for sched_releasetcb() 2020-03-26 14:12:34 -03:00
nxflat.c Run codespell -w with the latest dictonary again 2020-02-23 22:27:46 +01:00