From: "Roger Pau Monné" <roger.pau@citrix.com>
To: Jan Beulich <jbeulich@suse.com>
Cc: xen-devel@lists.xenproject.org, Wei Liu <wl@xen.org>,
Andrew Cooper <andrew.cooper3@citrix.com>
Subject: Re: [PATCH v2 2/3] build32: don't discard .shstrtab in linker script
Date: Mon, 1 Jun 2020 11:12:56 +0200 [thread overview]
Message-ID: <20200601091256.GR1195@Air-de-Roger> (raw)
In-Reply-To: <41429ddc-a6c3-ddba-97d6-aeb413df1960@suse.com>
On Fri, May 29, 2020 at 05:45:44PM +0200, Jan Beulich wrote:
> On 28.05.2020 16:40, Roger Pau Monne wrote:
> > LLVM linker doesn't support discarding .shstrtab, and complains with:
> >
> > ld -melf_i386_fbsd -N -T build32.lds -o reloc.lnk reloc.o
> > ld: error: discarding .shstrtab section is not allowed
>
> Well, yes, GNU ld is more intelligent and doesn't extend the
> discarding to the control sections in the first place. All
> of .symtab, .strtab, and .shstrtab are still there.
>
> > Add an explicit .shstrtab section to the linker script after the text
> > section in order to make LLVM LD happy.
> >
> > Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
>
> Assuming the change was tested to not confuse GNU ld
> Acked-by: Jan Beulich <jbeulich@suse.com>
Yes, it's been tested on the gitlab CI, no issues reported on any of
the builds:
https://gitlab.com/xen-project/people/royger/xen/pipelines/151009839
> I wouldn't mind extending this to the other two control
> sections named above. In case the binaries need picking
> apart, them being present is surely helpful.
I don't mind extending, it might make sense in case linkers start
complaining about trying to discard those too.
Thanks, Roger.
next prev parent reply other threads:[~2020-06-01 9:13 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-28 14:40 [PATCH v2 0/3] Clang/LLVM build fixes Roger Pau Monne
2020-05-28 14:40 ` [PATCH v2 1/3] x86/mm: do not attempt to convert _PAGE_GNTTAB to a boolean Roger Pau Monne
2020-05-29 15:10 ` Jan Beulich
2020-05-28 14:40 ` [PATCH v2 2/3] build32: don't discard .shstrtab in linker script Roger Pau Monne
2020-05-29 15:45 ` Jan Beulich
2020-06-01 9:12 ` Roger Pau Monné [this message]
2020-05-28 14:40 ` [PATCH v2 3/3] clang: don't define nocall Roger Pau Monne
2020-05-29 7:25 ` Julien Grall
2020-05-29 8:31 ` Roger Pau Monné
2020-05-29 12:36 ` Julien Grall
2020-05-29 14:49 ` Jan Beulich
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=20200601091256.GR1195@Air-de-Roger \
--to=roger.pau@citrix.com \
--cc=andrew.cooper3@citrix.com \
--cc=jbeulich@suse.com \
--cc=wl@xen.org \
--cc=xen-devel@lists.xenproject.org \
/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.