Changeset b192915a in mainline for uspace/lib/dltest


Ignore:
Timestamp:
2024-05-29T18:11:25Z (14 months ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
master
Children:
c576800
Parents:
9b95b964
Message:

Add test case for public variable initialized with a relocated value

Location:
uspace/lib/dltest
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/dltest/dltest.c

    r9b95b964 rb192915a  
    11/*
    2  * Copyright (c) 2016 Jiri Svoboda
     2 * Copyright (c) 2024 Jiri Svoboda
    33 * All rights reserved.
    44 *
     
    4343/** Public initialized variable */
    4444int dl_public_var = dl_public_var_val;
     45/** Public variable initialized with the address of a symbol */
     46int *dl_public_ptr_var = &dl_public_var;
    4547/** Public uninitialized variable */
    4648int dl_public_uvar;
  • uspace/lib/dltest/libdltest.h

    r9b95b964 rb192915a  
    11/*
    2  * Copyright (c) 2016 Jiri Svoboda
     2 * Copyright (c) 2024 Jiri Svoboda
    33 * All rights reserved.
    44 *
     
    6767extern int dl_public_var;
    6868extern int dl_public_uvar;
     69extern int *dl_public_ptr_var;
    6970extern fibril_local int dl_public_fib_var;
    7071extern fibril_local int dl_public_fib_uvar;
Note: See TracChangeset for help on using the changeset viewer.