annotate packages/services/objloader/current/ChangeLog @ 2925:7cbaadc92c67

* services/objloader/current/src/objloader.c, services/objloader/current/src/objelf.c services/objloader/current/include/objelf.h: Fixed a memory leak where a library section was loaded but memory allocated was not released. This bug was reported by Davy Wouters on the eCos list. Added minor cosmetics and a number of CYG_ASSERT and if() to test the values returned by cyg_ldr_load_elf_section() * services/objloader/current/cdl/objloader.cdl: Eliminate workarounds for file path handling issue in obsolete Cygwin tclsh. Use ACTUAL_CFLAGS for robustness. * fs/rom/current/cdl/romfs.cdl: Eliminate workarounds for file path handling issue in obsolete Cygwin tclsh. Build the mk_romfs tool with higher priority than the custom rules which use it.
author jld
date Fri, 09 Oct 2009 13:53:09 +0000
parents f8dd12428f1d
children 418d34334c77
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2925
7cbaadc92c67 * services/objloader/current/src/objloader.c,
jld
parents: 2890
diff changeset
1 2009-10-09 John Dallaway <john@dallaway.org.uk>
7cbaadc92c67 * services/objloader/current/src/objloader.c,
jld
parents: 2890
diff changeset
2
7cbaadc92c67 * services/objloader/current/src/objloader.c,
jld
parents: 2890
diff changeset
3 * cdl/objloader.cdl: Eliminate workarounds for file path handling
7cbaadc92c67 * services/objloader/current/src/objloader.c,
jld
parents: 2890
diff changeset
4 issue in obsolete Cygwin tclsh. Use ACTUAL_CFLAGS for robustness.
7cbaadc92c67 * services/objloader/current/src/objloader.c,
jld
parents: 2890
diff changeset
5
7cbaadc92c67 * services/objloader/current/src/objloader.c,
jld
parents: 2890
diff changeset
6 2009-09-13 Anthony Tonizzo <atonizzo@gmail.com>
7cbaadc92c67 * services/objloader/current/src/objloader.c,
jld
parents: 2890
diff changeset
7
7cbaadc92c67 * services/objloader/current/src/objloader.c,
jld
parents: 2890
diff changeset
8 * src/objloader.c, src/objelf.c, include/objelf.h : Fixed a memory
7cbaadc92c67 * services/objloader/current/src/objloader.c,
jld
parents: 2890
diff changeset
9 leak where a library section was loaded but memory allocated was not
7cbaadc92c67 * services/objloader/current/src/objloader.c,
jld
parents: 2890
diff changeset
10 released. This bug was reported by Davy Wouters on the eCos list.
7cbaadc92c67 * services/objloader/current/src/objloader.c,
jld
parents: 2890
diff changeset
11 Added minor cosmetics and a number of CYG_ASSERT and if() to test the
7cbaadc92c67 * services/objloader/current/src/objloader.c,
jld
parents: 2890
diff changeset
12 values returnedby cyg_ldr_load_elf_section().
7cbaadc92c67 * services/objloader/current/src/objloader.c,
jld
parents: 2890
diff changeset
13
2890
f8dd12428f1d * cdl/objloader.cdl, src/objelf.c, src/relocate_ppc.c,
jld
parents: 2770
diff changeset
14 2009-07-03 John Dallaway <john@dallaway.org.uk>
f8dd12428f1d * cdl/objloader.cdl, src/objelf.c, src/relocate_ppc.c,
jld
parents: 2770
diff changeset
15
f8dd12428f1d * cdl/objloader.cdl, src/objelf.c, src/relocate_ppc.c,
jld
parents: 2770
diff changeset
16 * cdl/objloader.cdl, src/objelf.c, src/relocate_ppc.c,
f8dd12428f1d * cdl/objloader.cdl, src/objelf.c, src/relocate_ppc.c,
jld
parents: 2770
diff changeset
17 src/relocate_arm.c: Eliminate dependency on CYGPKG_IO_FILEIO when
f8dd12428f1d * cdl/objloader.cdl, src/objelf.c, src/relocate_ppc.c,
jld
parents: 2770
diff changeset
18 the filesystem loader is not required.
f8dd12428f1d * cdl/objloader.cdl, src/objelf.c, src/relocate_ppc.c,
jld
parents: 2770
diff changeset
19
2770
35f991d79d4c * devs/framebuf/synth/current/cdl/framebuf_synth.cdl,
jld
parents: 2729
diff changeset
20 2009-02-07 John Dallaway <john@dallaway.org.uk>
35f991d79d4c * devs/framebuf/synth/current/cdl/framebuf_synth.cdl,
jld
parents: 2729
diff changeset
21
2890
f8dd12428f1d * cdl/objloader.cdl, src/objelf.c, src/relocate_ppc.c,
jld
parents: 2770
diff changeset
22 * cdl/objloader.cdl: Pass file2c.tcl to tclsh directly.
f8dd12428f1d * cdl/objloader.cdl, src/objelf.c, src/relocate_ppc.c,
jld
parents: 2770
diff changeset
23
f8dd12428f1d * cdl/objloader.cdl, src/objelf.c, src/relocate_ppc.c,
jld
parents: 2770
diff changeset
24 2008-12-01 Anthony Tonizzo <atonizzo@gmail.com>
f8dd12428f1d * cdl/objloader.cdl, src/objelf.c, src/relocate_ppc.c,
jld
parents: 2770
diff changeset
25 * src/relocate_arm.c : Added relocation software for the ARM .
f8dd12428f1d * cdl/objloader.cdl, src/objelf.c, src/relocate_ppc.c,
jld
parents: 2770
diff changeset
26 * src/relocate_i386.c : Added a structure containing the relocation names
f8dd12428f1d * cdl/objloader.cdl, src/objelf.c, src/relocate_ppc.c,
jld
parents: 2770
diff changeset
27 for every architecture. Only used (and compiled in) for pretty printing.
f8dd12428f1d * cdl/objloader.cdl, src/objelf.c, src/relocate_ppc.c,
jld
parents: 2770
diff changeset
28 * src/relocate_ppc.c :
f8dd12428f1d * cdl/objloader.cdl, src/objelf.c, src/relocate_ppc.c,
jld
parents: 2770
diff changeset
29 * include/relocate_arm.h : New header file for src/relocate_arm.c
f8dd12428f1d * cdl/objloader.cdl, src/objelf.c, src/relocate_ppc.c,
jld
parents: 2770
diff changeset
30 * cdl/objloader.cdl: Added the option to relocate for the ARM.
f8dd12428f1d * cdl/objloader.cdl, src/objelf.c, src/relocate_ppc.c,
jld
parents: 2770
diff changeset
31 * src/objloader.c :
f8dd12428f1d * cdl/objloader.cdl, src/objelf.c, src/relocate_ppc.c,
jld
parents: 2770
diff changeset
32 * src/objelf.c : Erased some redundant debug printout and improved the
f8dd12428f1d * cdl/objloader.cdl, src/objelf.c, src/relocate_ppc.c,
jld
parents: 2770
diff changeset
33 readability of the rest.
f8dd12428f1d * cdl/objloader.cdl, src/objelf.c, src/relocate_ppc.c,
jld
parents: 2770
diff changeset
34
f8dd12428f1d * cdl/objloader.cdl, src/objelf.c, src/relocate_ppc.c,
jld
parents: 2770
diff changeset
35 2008-12-01 Gernot Zankl <gernot.zankl@gmx.at>
f8dd12428f1d * cdl/objloader.cdl, src/objelf.c, src/relocate_ppc.c,
jld
parents: 2770
diff changeset
36 * src/loader_memory.c : Added the code to allow the objloader package
f8dd12428f1d * cdl/objloader.cdl, src/objelf.c, src/relocate_ppc.c,
jld
parents: 2770
diff changeset
37 to load libraries from ROM memory, instead from a file system. The various
f8dd12428f1d * cdl/objloader.cdl, src/objelf.c, src/relocate_ppc.c,
jld
parents: 2770
diff changeset
38 sections of the library are the copied from ROM to RAM and relocated.
f8dd12428f1d * cdl/objloader.cdl, src/objelf.c, src/relocate_ppc.c,
jld
parents: 2770
diff changeset
39 * include/loader_memory.h : New header file for src/loader_memory.c
f8dd12428f1d * cdl/objloader.cdl, src/objelf.c, src/relocate_ppc.c,
jld
parents: 2770
diff changeset
40 * src/objloader.c : Added a line to include the loader_memory header
f8dd12428f1d * cdl/objloader.cdl, src/objelf.c, src/relocate_ppc.c,
jld
parents: 2770
diff changeset
41 file and code to flush the cache when calling cyg_ldr_find_symbol().
f8dd12428f1d * cdl/objloader.cdl, src/objelf.c, src/relocate_ppc.c,
jld
parents: 2770
diff changeset
42 * cdl/objloader.cdl: Added one check boxe for each of the supported ways
f8dd12428f1d * cdl/objloader.cdl, src/objelf.c, src/relocate_ppc.c,
jld
parents: 2770
diff changeset
43 of loading libraries (two for now) so that the user can compile out the
f8dd12428f1d * cdl/objloader.cdl, src/objelf.c, src/relocate_ppc.c,
jld
parents: 2770
diff changeset
44 loading methods not used.
2770
35f991d79d4c * devs/framebuf/synth/current/cdl/framebuf_synth.cdl,
jld
parents: 2729
diff changeset
45
2243
6fd46febe457 Warnings, cosmetic fixes from Anthony Tonizzo
gthomas
parents: 2013
diff changeset
46 2006-06-27 Anthony Tonizzo <atonizzo@gmail.com>
6fd46febe457 Warnings, cosmetic fixes from Anthony Tonizzo
gthomas
parents: 2013
diff changeset
47 * src/loader_fs.c : Minor cosmetic and formatting changes on all files.
6fd46febe457 Warnings, cosmetic fixes from Anthony Tonizzo
gthomas
parents: 2013
diff changeset
48 Also got rid of some signed/unsigned comparison which did not show up using
6fd46febe457 Warnings, cosmetic fixes from Anthony Tonizzo
gthomas
parents: 2013
diff changeset
49 the PPC toolchain but do when compiled with gcc under the synthetic target.
6fd46febe457 Warnings, cosmetic fixes from Anthony Tonizzo
gthomas
parents: 2013
diff changeset
50 * src/objelf.c :
6fd46febe457 Warnings, cosmetic fixes from Anthony Tonizzo
gthomas
parents: 2013
diff changeset
51 * src/objloader.c :
6fd46febe457 Warnings, cosmetic fixes from Anthony Tonizzo
gthomas
parents: 2013
diff changeset
52 * src/relocate_i386.c :
6fd46febe457 Warnings, cosmetic fixes from Anthony Tonizzo
gthomas
parents: 2013
diff changeset
53 * src/relocate_ppc.c :
6fd46febe457 Warnings, cosmetic fixes from Anthony Tonizzo
gthomas
parents: 2013
diff changeset
54 * include/elf.h :
6fd46febe457 Warnings, cosmetic fixes from Anthony Tonizzo
gthomas
parents: 2013
diff changeset
55 * include/loader_fs.h :
6fd46febe457 Warnings, cosmetic fixes from Anthony Tonizzo
gthomas
parents: 2013
diff changeset
56 * include/objelf.h :
6fd46febe457 Warnings, cosmetic fixes from Anthony Tonizzo
gthomas
parents: 2013
diff changeset
57 * include/relocate_i386.h :
6fd46febe457 Warnings, cosmetic fixes from Anthony Tonizzo
gthomas
parents: 2013
diff changeset
58 * include/relocate_ppc.h :
6fd46febe457 Warnings, cosmetic fixes from Anthony Tonizzo
gthomas
parents: 2013
diff changeset
59 * test/test_mods.c :
6fd46febe457 Warnings, cosmetic fixes from Anthony Tonizzo
gthomas
parents: 2013
diff changeset
60 * test/library/hello.c :
6fd46febe457 Warnings, cosmetic fixes from Anthony Tonizzo
gthomas
parents: 2013
diff changeset
61
2013
8bf90d16b837 * include/objelf.h: Include hal_tables.h otherwise we get strange
asl
parents: 2011
diff changeset
62 2005-07-08 Andrew Lunn <andrew.lunn@ascom.ch>
8bf90d16b837 * include/objelf.h: Include hal_tables.h otherwise we get strange
asl
parents: 2011
diff changeset
63
2243
6fd46febe457 Warnings, cosmetic fixes from Anthony Tonizzo
gthomas
parents: 2013
diff changeset
64 * include/objelf.h: Include hal_tables.h otherwise we get strange
6fd46febe457 Warnings, cosmetic fixes from Anthony Tonizzo
gthomas
parents: 2013
diff changeset
65 linker errors.
6fd46febe457 Warnings, cosmetic fixes from Anthony Tonizzo
gthomas
parents: 2013
diff changeset
66 * cdl/objloader.cdl: Rearranged the building of the test case.
6fd46febe457 Warnings, cosmetic fixes from Anthony Tonizzo
gthomas
parents: 2013
diff changeset
67 * include/relocate_i386.h (New):
6fd46febe457 Warnings, cosmetic fixes from Anthony Tonizzo
gthomas
parents: 2013
diff changeset
68 * src/relocate_i386.c (New): Added a relocator for i386.
6fd46febe457 Warnings, cosmetic fixes from Anthony Tonizzo
gthomas
parents: 2013
diff changeset
69 * src/objelf.c: Fixed various Elf_Rel vs Elf_Rela issues.
6fd46febe457 Warnings, cosmetic fixes from Anthony Tonizzo
gthomas
parents: 2013
diff changeset
70 * test/load_mods.c:
6fd46febe457 Warnings, cosmetic fixes from Anthony Tonizzo
gthomas
parents: 2013
diff changeset
71 * test/library/hello.c: Modified to make use of the eCos test
6fd46febe457 Warnings, cosmetic fixes from Anthony Tonizzo
gthomas
parents: 2013
diff changeset
72 infrastructure. Uses a romfs to hold the object file to be loaded.
6fd46febe457 Warnings, cosmetic fixes from Anthony Tonizzo
gthomas
parents: 2013
diff changeset
73
6fd46febe457 Warnings, cosmetic fixes from Anthony Tonizzo
gthomas
parents: 2013
diff changeset
74 2005-05-10 Anthony Tonizzo <atonizzo@gmail.com>
2011
662e1b34b811 Added OBJLOADER package.
nickg
parents:
diff changeset
75
2243
6fd46febe457 Warnings, cosmetic fixes from Anthony Tonizzo
gthomas
parents: 2013
diff changeset
76 * include/elf.h:
6fd46febe457 Warnings, cosmetic fixes from Anthony Tonizzo
gthomas
parents: 2013
diff changeset
77 * include/loader_fs.h:
6fd46febe457 Warnings, cosmetic fixes from Anthony Tonizzo
gthomas
parents: 2013
diff changeset
78 * include/objelf.h:
6fd46febe457 Warnings, cosmetic fixes from Anthony Tonizzo
gthomas
parents: 2013
diff changeset
79 * include/relocate_ppc.h:
6fd46febe457 Warnings, cosmetic fixes from Anthony Tonizzo
gthomas
parents: 2013
diff changeset
80 * src/loader_fs.c:
6fd46febe457 Warnings, cosmetic fixes from Anthony Tonizzo
gthomas
parents: 2013
diff changeset
81 * src/objelf.c:
6fd46febe457 Warnings, cosmetic fixes from Anthony Tonizzo
gthomas
parents: 2013
diff changeset
82 * src/objloader.c:
6fd46febe457 Warnings, cosmetic fixes from Anthony Tonizzo
gthomas
parents: 2013
diff changeset
83 * src/relocate_ppc.c:
6fd46febe457 Warnings, cosmetic fixes from Anthony Tonizzo
gthomas
parents: 2013
diff changeset
84 * doc/notes.txt:
6fd46febe457 Warnings, cosmetic fixes from Anthony Tonizzo
gthomas
parents: 2013
diff changeset
85 * cdl/objloader.cdl:
6fd46febe457 Warnings, cosmetic fixes from Anthony Tonizzo
gthomas
parents: 2013
diff changeset
86 * tests/test_mods.c:
6fd46febe457 Warnings, cosmetic fixes from Anthony Tonizzo
gthomas
parents: 2013
diff changeset
87 * tests/library/hello.c:
6fd46febe457 Warnings, cosmetic fixes from Anthony Tonizzo
gthomas
parents: 2013
diff changeset
88 Created OBJLDR package.
6fd46febe457 Warnings, cosmetic fixes from Anthony Tonizzo
gthomas
parents: 2013
diff changeset
89
2011
662e1b34b811 Added OBJLOADER package.
nickg
parents:
diff changeset
90 //===========================================================================
2729
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2243
diff changeset
91 // ####GPLCOPYRIGHTBEGIN####
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2243
diff changeset
92 // -------------------------------------------
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2243
diff changeset
93 // This file is part of eCos, the Embedded Configurable Operating System.
2890
f8dd12428f1d * cdl/objloader.cdl, src/objelf.c, src/relocate_ppc.c,
jld
parents: 2770
diff changeset
94 // Copyright (C) 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
2011
662e1b34b811 Added OBJLOADER package.
nickg
parents:
diff changeset
95 //
2729
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2243
diff changeset
96 // This program is free software; you can redistribute it and/or modify
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2243
diff changeset
97 // it under the terms of the GNU General Public License as published by
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2243
diff changeset
98 // the Free Software Foundation; either version 2 or (at your option) any
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2243
diff changeset
99 // later version.
2011
662e1b34b811 Added OBJLOADER package.
nickg
parents:
diff changeset
100 //
2729
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2243
diff changeset
101 // This program is distributed in the hope that it will be useful, but
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2243
diff changeset
102 // WITHOUT ANY WARRANTY; without even the implied warranty of
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2243
diff changeset
103 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2243
diff changeset
104 // General Public License for more details.
2011
662e1b34b811 Added OBJLOADER package.
nickg
parents:
diff changeset
105 //
2729
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2243
diff changeset
106 // You should have received a copy of the GNU General Public License
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2243
diff changeset
107 // along with this program; if not, write to the
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2243
diff changeset
108 // Free Software Foundation, Inc., 51 Franklin Street,
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2243
diff changeset
109 // Fifth Floor, Boston, MA 02110-1301, USA.
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2243
diff changeset
110 // -------------------------------------------
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2243
diff changeset
111 // ####GPLCOPYRIGHTEND####
2011
662e1b34b811 Added OBJLOADER package.
nickg
parents:
diff changeset
112 //===========================================================================