public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* Change in binutils-gdb[master]: [gdb] Fix gdb.dwarf2/amd64-entry-value-param.exp with -fPIE/-pie
       [not found] <gerrit.1571044477000.Icebe4f5337b0297afb025b8ed03eb0a7460bc00c@gnutoolchain-gerrit.osci.io>
@ 2019-10-15  9:20 ` Tom de Vries (Code Review)
  2019-10-18 18:38 ` [review] " Tom Tromey (Code Review)
  1 sibling, 0 replies; 2+ messages in thread
From: Tom de Vries (Code Review) @ 2019-10-15  9:20 UTC (permalink / raw)
  To: gdb-patches

Tom de Vries has posted comments on this change.

Change URL: https://gnutoolchain-gerrit.osci.io/r/c/binutils-gdb/+/35
......................................................................


Patch Set 1:

Patch submitted here: https://sourceware.org/ml/gdb-patches/2019-08/msg00406.html


-- 
To view, visit https://gnutoolchain-gerrit.osci.io/r/c/binutils-gdb/+/35
To unsubscribe, or for help writing mail filters, visit https://gnutoolchain-gerrit.osci.io/r/settings

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [review] [gdb] Fix gdb.dwarf2/amd64-entry-value-param.exp with -fPIE/-pie
       [not found] <gerrit.1571044477000.Icebe4f5337b0297afb025b8ed03eb0a7460bc00c@gnutoolchain-gerrit.osci.io>
  2019-10-15  9:20 ` Change in binutils-gdb[master]: [gdb] Fix gdb.dwarf2/amd64-entry-value-param.exp with -fPIE/-pie Tom de Vries (Code Review)
@ 2019-10-18 18:38 ` Tom Tromey (Code Review)
  1 sibling, 0 replies; 2+ messages in thread
From: Tom Tromey (Code Review) @ 2019-10-18 18:38 UTC (permalink / raw)
  To: Tom de Vries, gdb-patches

Tom Tromey has posted comments on this change.

Change URL: https://gnutoolchain-gerrit.osci.io/r/c/binutils-gdb/+/35
......................................................................


Patch Set 1:

(3 comments)

Thank you for the patch.

I had a few comments, see below.

https://gnutoolchain-gerrit.osci.io/r/c/binutils-gdb/+/35/1//COMMIT_MSG 
Commit Message:

https://gnutoolchain-gerrit.osci.io/r/c/binutils-gdb/+/35/1//COMMIT_MSG@34 
PS1, Line 34: relocation offset at the use sites in call_site_for_pc and
This seems like a good idea to me, and also the direction
I'd like us to head more generally, because it means that
data can be shared across objfiles (eventually).


https://gnutoolchain-gerrit.osci.io/r/c/binutils-gdb/+/35/1/gdb/dwarf2read.c 
File gdb/dwarf2read.c:

https://gnutoolchain-gerrit.osci.io/r/c/binutils-gdb/+/35/1/gdb/dwarf2read.c@14123 
PS1, Line 14123: 	    SET_FIELD_PHYSADDR (call_site->target, lowpc);
Other spots in dwarf2read do this weird thing where they
relocate the value, then call gdbarch_adjust_dwarf2_addr,
and then un-relocate the value.  Perhaps this should too.

... though in the long run, ideally, we would just change
gdbarch to make it clear that this can be called with
unrelocated addresses.


https://gnutoolchain-gerrit.osci.io/r/c/binutils-gdb/+/35/1/gdb/objfiles.c 
File gdb/objfiles.c:

https://gnutoolchain-gerrit.osci.io/r/c/binutils-gdb/+/35/1/gdb/objfiles.c@1502 
PS1, Line 1502: find_objfile_section_for_unrelocated_addr (struct objfile *objfile,
This seems somewhat questionable to me.  I guess on ELF it
should work ok, but is there really a guarantee that the
sections cannot overlap in the unrelocated object file?

The current code just uses SECT_OFF_TEXT unconditionally, so
maybe just doing things that way would be fine, and avoid this
question.  (Or maybe the answer is "yes" and we don't have to
worry -- I do not know.)



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-10-18 18:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <gerrit.1571044477000.Icebe4f5337b0297afb025b8ed03eb0a7460bc00c@gnutoolchain-gerrit.osci.io>
2019-10-15  9:20 ` Change in binutils-gdb[master]: [gdb] Fix gdb.dwarf2/amd64-entry-value-param.exp with -fPIE/-pie Tom de Vries (Code Review)
2019-10-18 18:38 ` [review] " Tom Tromey (Code Review)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).