diff options
author | Ryan Prichard <rprichard@google.com> | 2018-08-20 17:44:42 -0700 |
---|---|---|
committer | Ryan Prichard <rprichard@google.com> | 2018-08-21 17:20:07 -0700 |
commit | 0489645e000428eb08bfc201dcf6d0dfa919d4a8 (patch) | |
tree | e79ac0cc0bfa27d99cb0fad6b8d3293dac47ab73 /tests/stdio_test.cpp | |
parent | 14dd9923b026c4500dc5b3f6f481b6bf1028778c (diff) |
Fix linker's _r_debug (gdb) info
* Initialize the exe's l_ld correctly, and initialize its l_addr field
earlier.
* Copy the phdr/phnum fields from the linker's temporary soinfo to its
final soinfo. This change ensures that dl_iterate_phdr shows the phdr
table for the linker.
* Change init_linker_info_for_gdb a little: use an soinfo's fields to
init the soinfo::link_map_head field, then reuse the new
init_link_map_head function to handle the linker and the executable.
Test: manual
Test: bionic-unit-tests
Bug: https://issuetracker.google.com/112627083
Bug: http://b/110967431
Change-Id: I40fad2c4d48f409347aaa1ccb98d96db89da1dfe
Diffstat (limited to 'tests/stdio_test.cpp')
0 files changed, 0 insertions, 0 deletions