2013-08-01 05:45:17

by Chen Gang

[permalink] [raw]
Subject: [PATCH] scripts/mod/modpost.c: permit '.cranges' secton for sh64 architecture.

Need permit '.cranges' section for sh64 architecture, or modpost will
report warning:

LD init/built-in.o
WARNING: init/built-in.o (.cranges): unexpected non-allocatable section.
Did you forget to use "ax"/"aw" in a .S file?
Note that for example <linux/init.h> contains
section definitions for use in .S files.


Signed-off-by: Chen Gang <[email protected]>
---
scripts/mod/modpost.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/scripts/mod/modpost.c b/scripts/mod/modpost.c
index 6216434..8247979 100644
--- a/scripts/mod/modpost.c
+++ b/scripts/mod/modpost.c
@@ -821,6 +821,7 @@ static const char *section_white_list[] =
{
".comment*",
".debug*",
+ ".cranges", /* sh64 */
".zdebug*", /* Compressed debug sections. */
".GCC-command-line", /* mn10300 */
".GCC.command.line", /* record-gcc-switches, non mn10300 */
--
1.7.7.6


2013-08-02 03:56:13

by Rusty Russell

[permalink] [raw]
Subject: Re: [PATCH] scripts/mod/modpost.c: permit '.cranges' secton for sh64 architecture.

Chen Gang <[email protected]> writes:
> Need permit '.cranges' section for sh64 architecture, or modpost will
> report warning:
>
> LD init/built-in.o
> WARNING: init/built-in.o (.cranges): unexpected non-allocatable section.
> Did you forget to use "ax"/"aw" in a .S file?
> Note that for example <linux/init.h> contains
> section definitions for use in .S files.
>
>
> Signed-off-by: Chen Gang <[email protected]>

Applied.

Thanks,
Rusty.

> ---
> scripts/mod/modpost.c | 1 +
> 1 files changed, 1 insertions(+), 0 deletions(-)
>
> diff --git a/scripts/mod/modpost.c b/scripts/mod/modpost.c
> index 6216434..8247979 100644
> --- a/scripts/mod/modpost.c
> +++ b/scripts/mod/modpost.c
> @@ -821,6 +821,7 @@ static const char *section_white_list[] =
> {
> ".comment*",
> ".debug*",
> + ".cranges", /* sh64 */
> ".zdebug*", /* Compressed debug sections. */
> ".GCC-command-line", /* mn10300 */
> ".GCC.command.line", /* record-gcc-switches, non mn10300 */
> --
> 1.7.7.6

2013-08-02 04:02:20

by Chen Gang

[permalink] [raw]
Subject: Re: [PATCH] scripts/mod/modpost.c: permit '.cranges' secton for sh64 architecture.

On 08/02/2013 10:27 AM, Rusty Russell wrote:
> Chen Gang <[email protected]> writes:
>> Need permit '.cranges' section for sh64 architecture, or modpost will
>> report warning:
>>
>> LD init/built-in.o
>> WARNING: init/built-in.o (.cranges): unexpected non-allocatable section.
>> Did you forget to use "ax"/"aw" in a .S file?
>> Note that for example <linux/init.h> contains
>> section definitions for use in .S files.
>>
>>
>> Signed-off-by: Chen Gang <[email protected]>
>
> Applied.
>

Thank you too.

> Thanks,
> Rusty.
>
>> ---
>> scripts/mod/modpost.c | 1 +
>> 1 files changed, 1 insertions(+), 0 deletions(-)
>>
>> diff --git a/scripts/mod/modpost.c b/scripts/mod/modpost.c
>> index 6216434..8247979 100644
>> --- a/scripts/mod/modpost.c
>> +++ b/scripts/mod/modpost.c
>> @@ -821,6 +821,7 @@ static const char *section_white_list[] =
>> {
>> ".comment*",
>> ".debug*",
>> + ".cranges", /* sh64 */
>> ".zdebug*", /* Compressed debug sections. */
>> ".GCC-command-line", /* mn10300 */
>> ".GCC.command.line", /* record-gcc-switches, non mn10300 */
>> --
>> 1.7.7.6
>
>


--
Chen Gang