lkml.org 
[lkml]   [2022]   [Apr]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 17/18] objtool: Remove --lto and --vmlinux
On Wed, Apr 13, 2022 at 04:19:52PM -0700, Josh Poimboeuf wrote:

> @@ -131,6 +131,12 @@ static inline u32 reloc_hash(struct reloc *reloc)
> return sec_offset_hash(reloc->sec, reloc->offset);
> }
>
> +/* is it a whole archive (vmlinux.o or module)? */
> +static inline bool is_linked_object(struct elf *elf)
> +{
> + return elf->num_files > 1;
> +}
> +
> struct elf *elf_open_read(const char *name, int flags);
> struct section *elf_create_section(struct elf *elf, const char *name, unsigned int sh_flags, size_t entsize, int nr);

Ooh, nice... yes, that was the entire point of --lto.

\
 
 \ /
  Last update: 2022-04-14 10:14    [W:0.125 / U:1.288 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site