[uClibc]SH initfini.awk problems ?

Stefan Allius allius at atecom.com
Thu Oct 31 08:20:35 UTC 2002

On Thursday 31 October 2002 08:48, you wrote:
> Hi Stefan,
> please make sure you avoid the following commands:
> omitcrti+=1
> omitcrti-=1
> Why ? Because you do not test for the proper value before changing it.
> If you really want to stick to an addition/substraction, I would suggest
> omitcrti=1-omitcrti. This will toggle the value each time.
> BTW, I cannot make anything of your patch.
> Patch tells me this: "patch: **** Only garbage was found in the patch
> input."
> Rgds,
> Christian
Hi Christian,

what I want is, to ensure that the omitcrti value is != 0 when I enter the
GLB section (at /SH_GLB_BEGINS/) if we haven't found any 
_GLOBAL_TABLE_OFFSET_ keywords (glb_idx==0). Wenn I leave this section (at 
/SH_GLB_ENDS/) I have to restore omitcrti to its orginal value, which might 
be 0 or 1. 
So I think the addition/substraction is the right way.

Remember, the GLB section will, be created by a single macro (==> 
initfini.c). So there can be only GLB-stuff between the SH_GLB_BEGINS and 
SH_GLB_ENDS keyword.

Bye Stefan

Stefan Allius
senior software engineer

ATecoM GmbH
advanced telecommunication modules
Kaiserstrasse 100
D-52134 Herzogenrath

Tel: +49/2407/9586-0
Fax: +49/2407/9586-44
eMail: allius at atecom.com
URL: http://www.atecom.com

-------------- next part --------------
A non-text attachment was scrubbed...
Name: initfini.c
Type: text/english
Size: 5101 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/uclibc/attachments/20021031/e104aedc/attachment.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: initfini.awk
Type: application/x-awk
Size: 2130 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/uclibc/attachments/20021031/e104aedc/attachment-0001.bin 

More information about the uClibc mailing list