Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(207)

Issue 306530043: i#1569 AArch64: Reimplement ELF import/export iterators. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
8 years, 8 months ago by Edmund.Grimley.Evans
Modified:
8 years, 8 months ago
Reviewers:
zhaoqin, bruening
CC:
dynamorio-devs_googlegroups.com
Visibility:
Public.

Description

Commit log for first patchset: --------------- i#1569 AArch64: Reimplement ELF import/export iterators. The previous implementation assumed that all imported symbols are excluded from the GNU hash table. This assumption seems to be unsafe. The new implementation iterates through both parts of the symbol table in both cases, filtering imports or exports using st_value. Enable client.modules on ARM and AArch64 as it now passes. ---------------

Patch Set 1 #

Total comments: 4

Patch Set 2 : Committed #

Unified diffs Side-by-side diffs Delta from patch set Stats (+174 lines, -218 lines) Patch
M core/unix/module_elf.c View 1 3 chunks +168 lines, -210 lines 0 comments Download
M suite/tests/CMakeLists.txt View 1 1 chunk +6 lines, -8 lines 0 comments Download

Messages

Total messages: 16
Edmund.Grimley.Evans
8 years, 8 months ago (2016-09-21 12:55:46 UTC) #1
zhaoqin
Will hasnext always return correct answer? https://codereview.appspot.com/306530043/diff/1/core/unix/module_elf.c File core/unix/module_elf.c (right): https://codereview.appspot.com/306530043/diff/1/core/unix/module_elf.c#newcode1552 core/unix/module_elf.c:1552: return symbol_iterator_cur_symbol(iter) != ...
8 years, 8 months ago (2016-09-22 18:05:54 UTC) #2
Edmund.Grimley.Evans
https://codereview.appspot.com/306530043/diff/1/core/unix/module_elf.c File core/unix/module_elf.c (right): https://codereview.appspot.com/306530043/diff/1/core/unix/module_elf.c#newcode1552 core/unix/module_elf.c:1552: return symbol_iterator_cur_symbol(iter) != NULL; On 2016/09/22 18:05:53, zhaoqin wrote: ...
8 years, 8 months ago (2016-09-22 18:34:11 UTC) #3
zhaoqin
LGTM https://codereview.appspot.com/306530043/diff/1/core/unix/module_elf.c File core/unix/module_elf.c (right): https://codereview.appspot.com/306530043/diff/1/core/unix/module_elf.c#newcode1552 core/unix/module_elf.c:1552: return symbol_iterator_cur_symbol(iter) != NULL; On 2016/09/22 18:34:11, Edmund.Grimley.Evans ...
8 years, 8 months ago (2016-09-22 18:44:23 UTC) #4
Edmund.Grimley.Evans
Committed as https://github.com/DynamoRIO/dynamorio/commit/b92660f476eeed0bb7591cdde8c06bf9163757c5 Final commit log: --------------- i#1569 AArch64: Reimplement ELF import/export iterators. The previous ...
8 years, 8 months ago (2016-09-23 09:22:02 UTC) #5
bruening
It looks like this broke Android, causing a crash in debug: http://dynamorio.org/CDash/testDetails.php?test=120665&build=11995 <Application /data/local/tmp/build_android-debug-internal-32/suite/tests/bin/client.modules (18916). ...
8 years, 8 months ago (2016-09-23 15:17:40 UTC) #6
edmund.grimley.evans_gmail.com
Or one could disable the test on Android. It depends on whether Android on AArch32 ...
8 years, 8 months ago (2016-09-23 15:59:00 UTC) #7
bruening
I don't see how disabling the test helps if this is a crash that happens ...
8 years, 8 months ago (2016-09-23 16:01:29 UTC) #8
bruening
I.e., this may crash existing tools like Dr. Memory (pegged to certain DR version, may ...
8 years, 8 months ago (2016-09-23 16:03:12 UTC) #9
bruening
On Fri, Sep 23, 2016 at 11:59 AM, <edmund.grimley.evans@gmail.com> wrote: > It depends on whether ...
8 years, 8 months ago (2016-09-23 16:04:57 UTC) #10
bruening
On Fri, Sep 23, 2016 at 11:59 AM, <edmund.grimley.evans@gmail.com> wrote: > Another thing: would it ...
8 years, 8 months ago (2016-09-23 16:08:55 UTC) #11
edmund.grimley.evans_gmail.com
It would be interesting to check whether the symbol iterators really do work on Android, ...
8 years, 8 months ago (2016-09-23 16:13:18 UTC) #12
zhaoqin
It seems Linux on ARM works fine. I will revert it now. On Fri, Sep ...
8 years, 8 months ago (2016-09-23 20:56:05 UTC) #13
edmund.grimley.evans_gmail.com
> The way to look at it is, is there existing code being broken: and ...
8 years, 8 months ago (2016-09-24 06:56:52 UTC) #14
bruening
I'm not sure: you may be right, and it is possible that DrMemory is only ...
8 years, 8 months ago (2016-09-24 15:22:47 UTC) #15
edmund.grimley.evans_gmail.com
8 years, 8 months ago (2016-09-26 09:32:59 UTC) #16
Yes, I don't think there's much that can be done without testing on 
Android. I've created https://github.com/DynamoRIO/dynamorio/issues/2008
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b