2002-10-25 00:16:17

by Peter Chubb

[permalink] [raw]
Subject: Fix name of discarded section in modules.h


Hi folks,
Changeset
[email protected]|ChangeSet|20021016154637|46581
in linux 2.5 changed the name of .exit.text to .text.exit.

Unfortunately, one change got missed. Here it is:

# This is a BitKeeper generated patch for the following project:
# Project Name: Linux kernel tree
# This patch format is intended for GNU patch command version 2.5 or higher.
# This patch includes the following deltas:
# ChangeSet 1.808 -> 1.809
# include/linux/module.h 1.17 -> 1.18
#
# The following is the BitKeeper ChangeSet Log
# --------------------------------------------
# 02/10/25 [email protected] 1.809
# Fix name of .text.exit section in include/linux/module.h
# --------------------------------------------
#
diff -Nru a/include/linux/module.h b/include/linux/module.h
--- a/include/linux/module.h Fri Oct 25 10:20:05 2002
+++ b/include/linux/module.h Fri Oct 25 10:20:05 2002
@@ -311,7 +311,7 @@
*/
#define MODULE_GENERIC_TABLE(gtype,name) \
static const struct gtype##_id * __module_##gtype##_table \
- __attribute__ ((unused, __section__(".data.exit"))) = name
+ __attribute__ ((unused, __section__(".exit.data"))) = name

#ifndef __GENKSYMS__