All of lore.kernel.org
 help / color / mirror / Atom feed
From: Wenlin Kang <wenlin.kang@windriver.com>
To: Richard Leitner <richard.leitner@skidata.com>,
	<openembedded-devel@lists.openembedded.org>
Subject: Re: [meta-java][PATCH 1/2] openjdk-8: remove debuglink
Date: Tue, 12 Jun 2018 19:35:25 +0800	[thread overview]
Message-ID: <4c52ac95-ccac-2e87-2874-18436eccbcb5@windriver.com> (raw)
In-Reply-To: <6bd2359a-5d58-f11e-9900-88f5de733d7f@skidata.com>

On 2018年06月12日 19:09, Richard Leitner wrote:
> Hi Wenlin,
>
> On 06/07/2018 11:24 AM, Wenlin Kang wrote:
>> We need remove previous debuglink before add it if it has existed,
>> because it may have a different file name with this that we will add.
> I'm sorry but I don't get the reason why we need this...
> It would be great if you may please explain it in a little more detail for me ;-)

Hi Richard

In openjdk-8, its debug file is xxx.debuginfo, and when execute 
openjdk's makefile, it will add
libjvm.debuginfo as libjvm.so's debuglink section's file name, this name 
is different  with that
we will add in splitdebuginfo() of package.bbclass, this makes we can't 
get symbol information
when debug libjvm.so in gdb.

>
> Thank you very much!
>
>> Signed-off-by: Wenlin Kang <wenlin.kang@windriver.com>
>> ---
>>   recipes-core/openjdk/openjdk-8-cross.inc | 16 ++++++++++++++++
>>   1 file changed, 16 insertions(+)
>>
>> diff --git a/recipes-core/openjdk/openjdk-8-cross.inc b/recipes-core/openjdk/openjdk-8-cross.inc
>> index 46f13fd..03cab11 100644
>> --- a/recipes-core/openjdk/openjdk-8-cross.inc
>> +++ b/recipes-core/openjdk/openjdk-8-cross.inc
>> @@ -105,5 +105,21 @@ EXTRA_OEMAKE_append = '\
>>       images \
>>   '
>>   
>> +python remove_debuglink() {
>> +    dvar = d.getVar('PKGD', True)
>> +    objcopy = d.getVar("OBJCOPY", True)
>> +
>> +    # Remove the previous debuglink if it has existed, because it has a different file name with that we will add.
>> +    if d.getVar('PN', True).find("jre") != -1:
>> +        file = dvar + d.getVar("JRE_HOME", True) + "/lib/" + d.getVar("JDK_ARCH", True) + "/server/libjvm.so"
>> +    else:
>> +        file = dvar + d.getVar("JDK_HOME", True) + "/jre/lib/" + d.getVar("JDK_ARCH", True) + "/server/libjvm.so"
>> +
>> +    cmd = "'%s' --remove-section .gnu_debuglink '%s'" % (objcopy, file)
>> +    oe.utils.getstatusoutput(cmd)
>> +}
>> +
>> +PACKAGE_PREPROCESS_FUNCS += "remove_debuglink"
>> +
>>   # There is a symlink to a .so but this one is valid.
>>   INSANE_SKIP_${PN} = "dev-so"
>>
> regards;Richard.L
>

-- 
Thanks,
Wenlin Kang



  reply	other threads:[~2018-06-12 11:36 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-06-07  9:24 [meta-java][PATCH 1/2] openjdk-8: remove debuglink Wenlin Kang
2018-06-07  9:24 ` [meta-java][PATCH 2/2] openjdk-8: combine the -dbg package Wenlin Kang
2018-06-08  7:39   ` Richard Leitner
2018-06-08  9:02     ` Wenlin Kang
2018-06-08  9:10       ` Wenlin Kang
2018-06-08 10:07       ` Richard Leitner
2018-06-11  6:31         ` Robert Yang
2018-06-12  7:59           ` Richard Leitner
2018-06-11  6:49         ` Wenlin Kang
2018-06-12  8:01   ` Richard Leitner
2018-06-12 10:59     ` Wenlin Kang
2018-06-12 11:09       ` Richard Leitner
2018-06-12 11:14         ` Wenlin Kang
2018-06-12 11:09 ` [meta-java][PATCH 1/2] openjdk-8: remove debuglink Richard Leitner
2018-06-12 11:35   ` Wenlin Kang [this message]
2018-06-12 12:02     ` Wenlin Kang
2018-06-12 12:47       ` Richard Leitner
2018-06-13  6:35         ` Wenlin Kang
2018-06-13  6:43           ` Richard Leitner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4c52ac95-ccac-2e87-2874-18436eccbcb5@windriver.com \
    --to=wenlin.kang@windriver.com \
    --cc=openembedded-devel@lists.openembedded.org \
    --cc=richard.leitner@skidata.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.