[lkml]   [2005]   [May]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: Illegal use of reserved word in system.h
    On Thu, 19 May 2005, Steven Rostedt wrote:

    > On Thu, 2005-05-19 at 16:06 +0200, Andreas Schwab wrote:
    >> "Richard B. Johnson" <> writes:
    >>> Now, where is that 'auxiliary vevtor'??? I got a pointer to
    >>> something to be executed before calling exit, I have an
    >>> argument count, then a bunch of pointers (argv), terminating
    >>> with a NULL, then another bunch of pointers (envp) terminating
    >>> with a NULL. Is there something after that??? If so, what's
    >>> the contents of this thing?
    >> See create_elf_tables. The aux table comes after the environment.
    > As I stated earlier, the page size passed in there is ELF_EXEC_PAGESIZE
    > which may not be the same as PAGE_SIZE.
    > -- Steve

    It's also hard to see what is happening in 'C'. When I execute

    #include <stdio.h>
    #include <stdlib.h>

    int main(int cnt, char *argv[], char *env[], char *aux[])
    printf("Aux 0 = %s\n", aux[0]);
    // printf("Aux 1 = %s\n", aux[1]);

    I get:

    Aux 0 = GLIBC_2.0

    The next pointer is a NULL pointer, so 'C' has dorked something.
    When I play in assembler, (crt.o startup) I get a pointer that
    points to:

    bffffb6c - pointer of the stack
    00000020 - dereferenced

    This shows that, that got called first, didn't
    preserve the vector.

    Dick Johnson
    Penguin : Linux version on an i686 machine (5537.79 BogoMips).
    Notice : All mail here is now cached for review by Dictator Bush.
    98.36% of all statistics are fiction.
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2005-05-19 16:45    [W:0.023 / U:33.680 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site