diff mbox

[v1,2/9] x86/arm: Make 'make debug' work properly.

Message ID 1471216074-3007-3-git-send-email-konrad.wilk@oracle.com (mailing list archive)
State New, archived
Headers show

Commit Message

Konrad Rzeszutek Wilk Aug. 14, 2016, 11:07 p.m. UTC
On x86 it works great but on ARM 32,64 not so much.

Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>

---
Cc: Jan Beulich <jbeulich@suse.com>
Cc: Andrew Cooper <andrew.cooper3@citrix.com>
Cc: Stefano Stabellini <sstabellini@kernel.org>
Cc: Julien Grall <julien.grall@arm.com>

v1: First submission
---
 xen/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Jan Beulich Aug. 17, 2016, noon UTC | #1
>>> On 15.08.16 at 01:07, <konrad.wilk@oracle.com> wrote:
> On x86 it works great but on ARM 32,64 not so much.

Considering the nature of the change ...

> --- a/xen/Makefile
> +++ b/xen/Makefile
> @@ -101,7 +101,7 @@ _uninstall:
>  
>  .PHONY: _debug
>  _debug:
> -	objdump -D -S $(TARGET)-syms > $(TARGET).s
> +	$(OBJDUMP) -D -S $(TARGET)-syms > $(TARGET).s

... I'd have expected breakage to be the other way around (works
in native build but breaks in cross ones). Can you explain in which
way a plain objdump fails here in the native case?

Irrespective of that the patch of course if fine, i.e.
Acked-by: Jan Beulich <jbeulich@suse.com>
just that's it like it to be explained better.

Jan
Konrad Rzeszutek Wilk Aug. 22, 2016, 5:05 p.m. UTC | #2
On Wed, Aug 17, 2016 at 06:00:22AM -0600, Jan Beulich wrote:
> >>> On 15.08.16 at 01:07, <konrad.wilk@oracle.com> wrote:
> > On x86 it works great but on ARM 32,64 not so much.
> 
> Considering the nature of the change ...
> 
> > --- a/xen/Makefile
> > +++ b/xen/Makefile
> > @@ -101,7 +101,7 @@ _uninstall:
> >  
> >  .PHONY: _debug
> >  _debug:
> > -	objdump -D -S $(TARGET)-syms > $(TARGET).s
> > +	$(OBJDUMP) -D -S $(TARGET)-syms > $(TARGET).s
> 
> ... I'd have expected breakage to be the other way around (works
> in native build but breaks in cross ones). Can you explain in which

Yes!
> way a plain objdump fails here in the native case?

I meant cross-builds. Doing compiling on ARM 32 proper platform
takes quite a while. And got so used that I am doing it now all the time.

> 
> Irrespective of that the patch of course if fine, i.e.
> Acked-by: Jan Beulich <jbeulich@suse.com>
> just that's it like it to be explained better.

Thank you. Changing the commit to say;

When doing cross-compilation we should use proper $(OBJDUMP).
Otherwise decompiling say ARM32 code using x86 objdump won't help much.

> 
> Jan
>
diff mbox

Patch

diff --git a/xen/Makefile b/xen/Makefile
index 4427771..a4c72be 100644
--- a/xen/Makefile
+++ b/xen/Makefile
@@ -101,7 +101,7 @@  _uninstall:
 
 .PHONY: _debug
 _debug:
-	objdump -D -S $(TARGET)-syms > $(TARGET).s
+	$(OBJDUMP) -D -S $(TARGET)-syms > $(TARGET).s
 
 .PHONY: _clean
 _clean: delete-unfresh-files