All of lore.kernel.org
 help / color / mirror / Atom feed
From: Fangrui Song <maskray@google.com>
To: kernel test robot <lkp@intel.com>
Cc: Masahiro Yamada <masahiroy@kernel.org>,
	Nick Desaulniers <ndesaulniers@google.com>,
	 linux-kbuild@vger.kernel.org, oe-kbuild-all@lists.linux.dev,
	 linux-kernel@vger.kernel.org,
	Peter Collingbourne <pcc@google.com>,
	 Will Deacon <will@kernel.org>
Subject: Re: [PATCH] Makefile: use -z pack-relative-relocs
Date: Fri, 24 Mar 2023 00:31:54 -0700	[thread overview]
Message-ID: <CAFP8O3+J47WNj76hK4tZad4wJJpZZjT28OBbRBkiYcaCVhJxMQ@mail.gmail.com> (raw)
In-Reply-To: <202303241443.0sSziFDY-lkp@intel.com>

On Thu, Mar 23, 2023 at 11:51 PM kernel test robot <lkp@intel.com> wrote:
>
> Hi Fangrui,
>
> Thank you for the patch! Perhaps something to improve:
>
> [auto build test WARNING on masahiroy-kbuild/for-next]
> [also build test WARNING on masahiroy-kbuild/fixes linus/master v6.3-rc3 next-20230323]
> [If your patch is applied to the wrong git tree, kindly drop us a note.
> And when submitting patch, we suggest to use '--base' as documented in
> https://git-scm.com/docs/git-format-patch#_base_tree_information]
>
> url:    https://github.com/intel-lab-lkp/linux/commits/Fangrui-Song/Makefile-use-z-pack-relative-relocs/20230324-044515
> base:   https://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild.git for-next
> patch link:    https://lore.kernel.org/r/20230323204427.3594372-1-maskray%40google.com
> patch subject: [PATCH] Makefile: use -z pack-relative-relocs
> config: arm64-randconfig-r022-20230322 (https://download.01.org/0day-ci/archive/20230324/202303241443.0sSziFDY-lkp@intel.com/config)
> compiler: aarch64-linux-gcc (GCC) 12.1.0
> reproduce (this is a W=1 build):
>         wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
>         chmod +x ~/bin/make.cross
>         # https://github.com/intel-lab-lkp/linux/commit/8f47a36faf182f96a2bbf4d3b9305fe9a90c5cde
>         git remote add linux-review https://github.com/intel-lab-lkp/linux
>         git fetch --no-tags linux-review Fangrui-Song/Makefile-use-z-pack-relative-relocs/20230324-044515
>         git checkout 8f47a36faf182f96a2bbf4d3b9305fe9a90c5cde
>         # save the config file
>         mkdir build_dir && cp config build_dir/.config
>         COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=arm64 olddefconfig
>         COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=arm64 SHELL=/bin/bash
>
> If you fix the issue, kindly add following tag where applicable
> | Reported-by: kernel test robot <lkp@intel.com>
> | Link: https://lore.kernel.org/oe-kbuild-all/202303241443.0sSziFDY-lkp@intel.com/
>
> All warnings (new ones prefixed by >>):
>
> >> aarch64-linux-ld: warning: -z pack-relative-relocs ignored
> >> aarch64-linux-ld: warning: -z pack-relative-relocs ignored
> >> aarch64-linux-ld: warning: -z pack-relative-relocs ignored
>
> --
> 0-DAY CI Kernel Test Service
> https://github.com/intel/lkp-tests

I forgot to check aarch64-linux-gnu-ld. To address the issue I can use:

# ld.lld before 15 did not support -z pack-relative-relocs.
if ! $LD $tmp_file.o -shared -Bsymbolic --pack-dyn-relocs=relr -o
$tmp_file 2>/dev/null; then
        $LD $tmp_file.o -shared -Bsymbolic -z pack-relative-relocs -o
$tmp_file 2>&1 |
                grep -q pack-relative-relocs && exit 1
fi



-- 
宋方睿

      reply	other threads:[~2023-03-24  7:32 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-23 20:44 [PATCH] Makefile: use -z pack-relative-relocs Fangrui Song
2023-03-23 23:17 ` Nick Desaulniers
2023-03-24  0:12   ` Fangrui Song
2023-03-24  6:50 ` kernel test robot
2023-03-24  7:31   ` Fangrui Song [this message]

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=CAFP8O3+J47WNj76hK4tZad4wJJpZZjT28OBbRBkiYcaCVhJxMQ@mail.gmail.com \
    --to=maskray@google.com \
    --cc=linux-kbuild@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lkp@intel.com \
    --cc=masahiroy@kernel.org \
    --cc=ndesaulniers@google.com \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=pcc@google.com \
    --cc=will@kernel.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.