e3 fixed

I was puzzled, when I released a new 4.3 alpha or beta, e3 was broken. Note, 'vi' runs e3 in its vi-compatible mode.

I have found out why. I introduced file stripping into the '3builddistro' script in Woof, and it also strips e3 -- result, e3 reduces from 13KB to 208 bytes and won't run.


Posted on 4 Sep 2009, 18:47


Comments:

Posted on 5 Sep 2009, 2:24 by technosaurus
need C version of e3
If you do the standard compile you get that behavior , but if you compile it in the e3c directory then stripping does not have that effect. I did a static compile against dietlibc and it is still only 13kb.
strip --strip-all --remove-section=.comment --remove-section=.note e3c is about as small as you can go without using sstrip. Then you just need a symlink for e3. I can upload it if you'd like. It will eventually make it to my dietbinaries page on code.google.com. It is a good source for files to go in init (~300 binaries so far)


Posted on 5 Sep 2009, 3:20 by technosaurus
e3c != e3 ????
well, it seems like e3c only operates in default wv mode (maybe not but they all look the same to me - I use geany) and is originally based on version 0.6

Here is the culprit for bad stripping behavior
"A Whirlwind Tutorial on Creating Really Teensy ELF Executables for Linux"

e3 uses this technique to reduce the size (only a couple kb) in e3.h starting at ~line 817

this reminded me of an ongoing issue
/etc/xdg/rox.sourceforge.net/MIME-types/text
is set to use
exec xterm -e vi "$@"
instead of
defaulttexteditor "$@"

I think that it may be part of the rox package, but changing this gives the expected behavior when clicking on .c .h and many other types of files (even though this mime type is duplicated properly with defaulttexteditor in Choices) as opposed to a blank "vi" terminal. Right click and open as text works, but can become cumbersome when patching a batch of code.

Anyhow you probably patch more code than I, so I thought I'd share my little "fix"



Posted on 5 Sep 2009, 8:58 by BarryK
text mime type
technosaurus,
Thanks for that info, I've fixed it.



Posted on 5 Sep 2009, 9:30 by JohnMurga
JohnMurga
FYI - Forum having serious problems, I am on it and content is safe however I do have a bad feeling.


Posted on 5 Sep 2009, 13:04 by BarryK
Forum
John,
I logged into the forum a little while ago, it seemed ok.
Do you think it has been compromised by someone?