Skip to content

izx doesn't show all referenced strings #5172

@notxvilka

Description

@notxvilka
$ rizin -A ld-uClibc-0.9.28.so_rel_0_3
[0x00000ad0]> izx
     paddr      vaddr flag                                                              len size section type  xref-from                        string
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
0x0000519c 0x0000519c str.s:_aborted_attempt_to_load__s                                  32   33 .rodata ascii 0x00001a24                       %s: aborted attempt to load %s!\n
0x00005164 0x00005164 str.s:_can_t_resolve_symbol___s                                    30   31 .rodata ascii 0x00004cd8                       %s: can't resolve symbol '%s'\n
0x00005154 0x00005154 str.atexit                                                          6    7 .rodata ascii 0x0000467c                       atexit
0x00005138 0x00005138 str.s_____s___x                                                    15   16 .rodata ascii 0x00003f24,0x00004198,0x000044e8 \t%s => %s (%x)\n
0x00005104 0x00005104 str.s____not_found                                                 17   18 .rodata ascii 0x00003e48,0x000040e4            \t%s => not found\n
0x000050dc 0x000050dc str.LD_LIBRARY_PATH                                                15   16 .rodata ascii 0x000038e4                       LD_LIBRARY_PATH
0x000050c4 0x000050c4 str.LD_BIND_NOW                                                    11   12 .rodata ascii 0x000037c4                       LD_BIND_NOW
0x0000507c 0x0000507c str.can_t_handle_reloc_type__x                                     27   28 .rodata ascii 0x000034a0                       can't handle reloc type %x\n
0x00005064 0x00005064 str.s:                                                              5    6 .rodata ascii 0x00003458                       \n%s:
0x00004fb4 0x00004fb4 str.Out_of_memory                                                  15   16 .rodata ascii 0x00002e98                       Out of memory!\n
0x00004f38 0x00004f38 str.s:___s__is_missing_a_dynamic_section                           38   39 .rodata ascii 0x00002bc4                       %s: '%s' is missing a dynamic section\n
0x00004ef8 0x00004ef8 str.s:___s__has_more_than_one_dynamic_section                      43   44 .rodata ascii 0x000025f8                       %s: '%s' has more than one dynamic section\n
0x00004eac 0x00004eac str.s:___s__is_not_an_ELF_file                                     28   29 .rodata ascii 0x00002528                       %s: '%s' is not an ELF file\n
0x00004e74 0x00004e74 str.s:_mmap_of_a_spare_page_failed                                 33   34 .rodata ascii 0x00001fe0                       %s: mmap of a spare page failed!\n
0x00004e50 0x00004e50 str.1.7.0                                                           5    6 .rodata ascii 0x00001dc4,0x00001ddc            1.7.0
0x00004e2c 0x00004e2c str.s:_can_t_map_cache___s                                         25   26 .rodata ascii 0x00001d44                       %s: can't map cache '%s'\n
0x00004d94 0x00004d94 str.s:_cannot_apply_additional_memory_protection_after_relocation  62   63 .rodata ascii 0x00001ba8                       %s: cannot apply additional memory protection after relocation
0x00004d70 0x00004d70 str.ld_uClibc.so.0,section..rodata,.rodata                         14   15 .rodata ascii 0x00004070,0x00004084            ld-uClibc.so.0
[0x00000ad0]>

Note the lack of std.Standalone... in that table:

[0x000036ac]> pdf~Standa
│       │   0x00003780      9850a524       addiu a1, a1, str.Standalone_execution_is_not_supported_yet ; 0x5098 ; arg2
[0x000036ac]> afi
offset: 0x000036ac
name: sym._dl_get_ready_to_run
size: 4220
is-pure: false
realsz: 4648
stackframe: 344
call-convention: n32

But it's present in the regular iz:

[0x000036ac]> iz~Standa
0x00005098 0x00005098  42   43 .rodata ascii Standalone execution is not supported yet\n
[0x000036ac]>

cc @PeiweiHu

ld-uClibc-0.9.28.so_rel_0_3.zip

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions