<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/scripts/kallsyms.c, branch v5.5</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/
</subtitle>
<id>https://git.shady.money/linux/atom?h=v5.5</id>
<link rel='self' href='https://git.shady.money/linux/atom?h=v5.5'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/'/>
<updated>2019-12-14T06:53:04Z</updated>
<entry>
<title>scripts/kallsyms: fix offset overflow of kallsyms_relative_base</title>
<updated>2019-12-14T06:53:04Z</updated>
<author>
<name>Masahiro Yamada</name>
<email>masahiroy@kernel.org</email>
</author>
<published>2019-12-09T03:51:48Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=fd2ab2f6610b2bec70e626c38de8a4242fa88e48'/>
<id>urn:sha1:fd2ab2f6610b2bec70e626c38de8a4242fa88e48</id>
<content type='text'>
Since commit 5e5c4fa78745 ("scripts/kallsyms: shrink table before
sorting it"), kallsyms_relative_base can be larger than _text, which
causes overflow when building the 32-bit kernel.

https://lkml.org/lkml/2019/12/7/156

This is because _text is, unless --all-symbols is specified, now
trimmed from the symbol table before record_relative_base() is called.

Handle the offset signedness also for kallsyms_relative_base. Introduce
a new helper, output_address(), to reduce the code duplication.

Fixes: 5e5c4fa78745 ("scripts/kallsyms: shrink table before sorting it")
Reported-by: Olof Johansson &lt;olof@lixom.net&gt;
Signed-off-by: Masahiro Yamada &lt;masahiroy@kernel.org&gt;
</content>
</entry>
<entry>
<title>scripts/kallsyms: remove redundant initializers</title>
<updated>2019-11-25T12:07:05Z</updated>
<author>
<name>Masahiro Yamada</name>
<email>yamada.masahiro@socionext.com</email>
</author>
<published>2019-11-23T16:04:44Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=831362fc317ae60413879deacdcc9617d9ce9e20'/>
<id>urn:sha1:831362fc317ae60413879deacdcc9617d9ce9e20</id>
<content type='text'>
These are set to zero without the explicit initializers.

Signed-off-by: Masahiro Yamada &lt;yamada.masahiro@socionext.com&gt;
</content>
</entry>
<entry>
<title>scripts/kallsyms: put check_symbol_range() calls close together</title>
<updated>2019-11-25T12:06:49Z</updated>
<author>
<name>Masahiro Yamada</name>
<email>yamada.masahiro@socionext.com</email>
</author>
<published>2019-11-23T16:04:43Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=d44270fc976b6c3b9e742e398580e4af8c69f7bd'/>
<id>urn:sha1:d44270fc976b6c3b9e742e398580e4af8c69f7bd</id>
<content type='text'>
Put the relevant code close together.

Signed-off-by: Masahiro Yamada &lt;yamada.masahiro@socionext.com&gt;
</content>
</entry>
<entry>
<title>scripts/kallsyms: make check_symbol_range() void function</title>
<updated>2019-11-25T12:06:37Z</updated>
<author>
<name>Masahiro Yamada</name>
<email>yamada.masahiro@socionext.com</email>
</author>
<published>2019-11-23T16:04:42Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=b6233d0ded3391a33bb0047edafe15169131eadb'/>
<id>urn:sha1:b6233d0ded3391a33bb0047edafe15169131eadb</id>
<content type='text'>
There is no more reason to check the return value of
check_symbol_range().

Signed-off-by: Masahiro Yamada &lt;yamada.masahiro@socionext.com&gt;
</content>
</entry>
<entry>
<title>scripts/kallsyms: move ignored symbol types to is_ignored_symbol()</title>
<updated>2019-11-25T12:06:14Z</updated>
<author>
<name>Masahiro Yamada</name>
<email>yamada.masahiro@socionext.com</email>
</author>
<published>2019-11-23T16:04:41Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=887df76de67f5a6dd423e5763c22ff07f0e50048'/>
<id>urn:sha1:887df76de67f5a6dd423e5763c22ff07f0e50048</id>
<content type='text'>
Collect the ignored patterns to is_ignored_symbol().

Signed-off-by: Masahiro Yamada &lt;yamada.masahiro@socionext.com&gt;
</content>
</entry>
<entry>
<title>scripts/kallsyms: move more patterns to the ignored_prefixes array</title>
<updated>2019-11-25T12:06:01Z</updated>
<author>
<name>Masahiro Yamada</name>
<email>yamada.masahiro@socionext.com</email>
</author>
<published>2019-11-23T16:04:40Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=97261e1e2240f627e27e93f7e410be1a7c97c80a'/>
<id>urn:sha1:97261e1e2240f627e27e93f7e410be1a7c97c80a</id>
<content type='text'>
Refactoring for shortening the code.

Signed-off-by: Masahiro Yamada &lt;yamada.masahiro@socionext.com&gt;
</content>
</entry>
<entry>
<title>scripts/kallsyms: skip ignored symbols very early</title>
<updated>2019-11-25T12:04:57Z</updated>
<author>
<name>Masahiro Yamada</name>
<email>yamada.masahiro@socionext.com</email>
</author>
<published>2019-11-23T16:04:39Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=a41333e06acd1b37f3a3248fb90cd417218f9439'/>
<id>urn:sha1:a41333e06acd1b37f3a3248fb90cd417218f9439</id>
<content type='text'>
Unless the address range matters, symbols can be ignored earlier,
which avoids unneeded memory allocation.

Signed-off-by: Masahiro Yamada &lt;yamada.masahiro@socionext.com&gt;
</content>
</entry>
<entry>
<title>scripts/kallsyms: add const qualifiers where possible</title>
<updated>2019-11-25T12:04:33Z</updated>
<author>
<name>Masahiro Yamada</name>
<email>yamada.masahiro@socionext.com</email>
</author>
<published>2019-11-23T16:04:38Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=4bfe2b7816a6e97fba7b4125166b33db4b31d29d'/>
<id>urn:sha1:4bfe2b7816a6e97fba7b4125166b33db4b31d29d</id>
<content type='text'>
Add 'const' where a function does not write to the pointer dereferenes.

Signed-off-by: Masahiro Yamada &lt;yamada.masahiro@socionext.com&gt;
</content>
</entry>
<entry>
<title>scripts/kallsyms: make find_token() return (unsigned char *)</title>
<updated>2019-11-25T12:04:11Z</updated>
<author>
<name>Masahiro Yamada</name>
<email>yamada.masahiro@socionext.com</email>
</author>
<published>2019-11-23T16:04:37Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=2558c138aca75e5fc435e20fd37f0b0eea61bb65'/>
<id>urn:sha1:2558c138aca75e5fc435e20fd37f0b0eea61bb65</id>
<content type='text'>
The callers of this function expect (unsigned char *). I do not see
a good reason to make this function return (void *).

Signed-off-by: Masahiro Yamada &lt;yamada.masahiro@socionext.com&gt;
</content>
</entry>
<entry>
<title>scripts/kallsyms: replace prefix_underscores_count() with strspn()</title>
<updated>2019-11-25T12:03:51Z</updated>
<author>
<name>Masahiro Yamada</name>
<email>yamada.masahiro@socionext.com</email>
</author>
<published>2019-11-23T16:04:36Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=aa915245005bdb45ccbc96964853b4a27646390f'/>
<id>urn:sha1:aa915245005bdb45ccbc96964853b4a27646390f</id>
<content type='text'>
You can do equivalent things with strspn(). I do not see noticeable
performance difference.

Signed-off-by: Masahiro Yamada &lt;yamada.masahiro@socionext.com&gt;
</content>
</entry>
</feed>
