Re: [PATCH v3 2/2] libgloss: pru: Trim crt0-minrt.o
Dimitar Dimitrov <[email protected]>
| Newsgroups | gmane.comp.lib.newlib |
|---|---|
| Message-ID | <ZatvrC_tGO6g6_AG@kendros> |
On Thu, Jan 04, 2024 at 07:19:52PM +0200, Dimitar Dimitrov wrote: > Strip a few more instructions from crt0-minrt.S: > - Remove "halt" and rely on the infinite loop after main()'s return. > - Remove main()'s argc and argv argument initialization. Host loader > does not set them, and typical firmware does not use them, either. > - Remove the __dso_handle symbol. > > This should be safe because the default crt0.S is fully standards > compliant. Whereas crt0-minrt.S has been documented from the beginning > to intentionally miss features in order to reduce firmware size, while > still enabling typical PRU firmware to operate. > > Signed-off-by: Dimitar Dimitrov <[email protected]> > --- > libgloss/pru/crt0-minrt.S | 15 +-------------- > 1 file changed, 1 insertion(+), 14 deletions(-) Ping. Regards, Dimitar