summaryrefslogtreecommitdiffstats
path: root/cpukit/libdl/rtl-trace.h
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2016-08-12 18:02:52 +1000
committerChris Johns <chrisj@rtems.org>2016-08-15 15:44:38 +1000
commit58c34961ca4c6ded8c5fc3ef484aaf711aacd1cc (patch)
tree07c94a88ee5ae7f5904e1c821f9d68f64c0504af /cpukit/libdl/rtl-trace.h
parentlibdl: Add trace output when reading section headers. (diff)
downloadrtems-58c34961ca4c6ded8c5fc3ef484aaf711aacd1cc.tar.bz2
libdl: Fix cache corruption bugs.
This patch fixes a number of bugs in the cache when requests are made to read close to the end of the file and the data is copied from the top of the cache buffer to the bottom of the buffer. This was compounded by attempting to read past the end of the file. Closes #2754.
Diffstat (limited to 'cpukit/libdl/rtl-trace.h')
-rw-r--r--cpukit/libdl/rtl-trace.h25
1 files changed, 13 insertions, 12 deletions
diff --git a/cpukit/libdl/rtl-trace.h b/cpukit/libdl/rtl-trace.h
index 6c060a1519..4b93c8c91c 100644
--- a/cpukit/libdl/rtl-trace.h
+++ b/cpukit/libdl/rtl-trace.h
@@ -36,18 +36,19 @@ typedef uint32_t rtems_rtl_trace_mask;
/**
* List of tracing bits for the various parts of the link editor.
*/
-#define RTEMS_RTL_TRACE_ALL (0xffffffffUL)
-#define RTEMS_RTL_TRACE_LOAD (1UL << 0)
-#define RTEMS_RTL_TRACE_UNLOAD (1UL << 1)
-#define RTEMS_RTL_TRACE_SECTION (1UL << 2)
-#define RTEMS_RTL_TRACE_SYMBOL (1UL << 3)
-#define RTEMS_RTL_TRACE_RELOC (1UL << 4)
-#define RTEMS_RTL_TRACE_GLOBAL_SYM (1UL << 5)
-#define RTEMS_RTL_TRACE_LOAD_SECT (1UL << 6)
-#define RTEMS_RTL_TRACE_ALLOCATOR (1UL << 7)
-#define RTEMS_RTL_TRACE_UNRESOLVED (1UL << 8)
-#define RTEMS_RTL_TRACE_DETAIL (1UL << 9)
-#define RTEMS_RTL_TRACE_WARNING (1UL << 10)
+#define RTEMS_RTL_TRACE_DETAIL (1UL << 0)
+#define RTEMS_RTL_TRACE_WARNING (1UL << 1)
+#define RTEMS_RTL_TRACE_LOAD (1UL << 2)
+#define RTEMS_RTL_TRACE_UNLOAD (1UL << 3)
+#define RTEMS_RTL_TRACE_SECTION (1UL << 4)
+#define RTEMS_RTL_TRACE_SYMBOL (1UL << 5)
+#define RTEMS_RTL_TRACE_RELOC (1UL << 6)
+#define RTEMS_RTL_TRACE_GLOBAL_SYM (1UL << 7)
+#define RTEMS_RTL_TRACE_LOAD_SECT (1UL << 8)
+#define RTEMS_RTL_TRACE_ALLOCATOR (1UL << 9)
+#define RTEMS_RTL_TRACE_UNRESOLVED (1UL << 10)
+#define RTEMS_RTL_TRACE_CACHE (1UL << 11)
+#define RTEMS_RTL_TRACE_ALL (0xffffffffUL & ~(RTEMS_RTL_TRACE_CACHE))
/**
* Call to check if this part is bring traced. If RTEMS_RTL_TRACE is defined to