From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.28.203.135 with SMTP id b129mr2405576wmg.5.1466670980623; Thu, 23 Jun 2016 01:36:20 -0700 (PDT) X-Received: by 10.157.39.133 with SMTP id c5mr449742otb.6.1466670980510; Thu, 23 Jun 2016 01:36:20 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!feeder.eternal-september.org!goblin3!goblin1!goblin.stu.neva.ru!w10no7572369lbo.0!news-out.google.com!f5ni14216lbb.0!nntp.google.com!oe3no9372099lbb.1!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Thu, 23 Jun 2016 01:36:20 -0700 (PDT) Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=2601:404:c101:73a5:617e:2e73:689f:d177; posting-account=-WG8VgoAAAAlWewKFi0J7zSTMYXZyyK3 NNTP-Posting-Host: 2601:404:c101:73a5:617e:2e73:689f:d177 User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <2048d6d6-04e2-4e2c-9483-e3769da59781@googlegroups.com> Subject: Kernel Syscall from Ada? From: Diogenes Injection-Date: Thu, 23 Jun 2016 08:36:20 +0000 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Xref: news.eternal-september.org comp.lang.ada:30890 Date: 2016-06-23T01:36:20-07:00 List-Id: Is there a simple way to make a direct (Linux)Kernel syscall from Ada witho= ut using the system C library? i.e. Make a direct call as in Assembler? I'm asking because I've found a way to strip about 80k from a statically li= nked executable by not including Interfaces.C in the runtime. I've gotten my code to work reasonably well (no segfaults or memory errors)= using inline Assembler. But it seems like there should be an Abstract or G= eneric "syscall" feature as part of the System library that we could use fo= r doing our own Kernel calls. Same thing for the vDSO. Any tips? Diogenes