Changeset b36d112 in clfs-embedded
- Timestamp:
- Feb 3, 2009, 6:54:07 PM (16 years ago)
- Branches:
- master
- Children:
- 8c63653
- Parents:
- 320a81a
- Files:
-
- 1 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
BOOK/patches.ent
r320a81a rb36d112 13 13 <!ENTITY binutils-posix-patch-size "4 KB"> 14 14 15 <!ENTITY busybox-branch_update-patch "busybox-&busybox-version;-branch_update- 1.patch">16 <!ENTITY busybox-branch_update-patch-md5 " 878f435f7ab3a7bc8dfffaeb7038a6da">17 <!ENTITY busybox-branch_update-patch-size " 8KB">15 <!ENTITY busybox-branch_update-patch "busybox-&busybox-version;-branch_update-2.patch"> 16 <!ENTITY busybox-branch_update-patch-md5 "b67aa615c625eb31ee4b713f29d3daf3"> 17 <!ENTITY busybox-branch_update-patch-size "12 KB"> 18 18 19 19 <!-- -
patches/busybox-1.13.2-branch_update-2.patch
r320a81a rb36d112 1 1 Submitted By: Jim Gifford (jim at cross-lfs dot org) 2 Date: 0 1-25-20092 Date: 02-03-2009 3 3 Initial Package Version: 1.13.2 4 4 Origin: Upstream … … 9 9 diff -Naur busybox-1.13.2.orig/archival/tar.c busybox-1.13.2/archival/tar.c 10 10 --- busybox-1.13.2.orig/archival/tar.c 2008-11-09 09:28:02.000000000 -0800 11 +++ busybox-1.13.2/archival/tar.c 2009-0 1-25 12:52:44.955898588 -080011 +++ busybox-1.13.2/archival/tar.c 2009-02-03 18:52:40.994695068 -0800 12 12 @@ -591,8 +591,6 @@ 13 13 struct TarBallInfo tbInfo; … … 19 19 tbInfo.verboseFlag = verboseFlag; 20 20 21 diff -Naur busybox-1.13.2.orig/init/init.c busybox-1.13.2/init/init.c 22 --- busybox-1.13.2.orig/init/init.c 2008-12-30 19:06:45.000000000 -0800 23 +++ busybox-1.13.2/init/init.c 2009-02-03 18:52:38.186515155 -0800 24 @@ -671,15 +671,14 @@ 25 */ 26 static void parse_inittab(void) 27 { 28 +#if ENABLE_FEATURE_USE_INITTAB 29 char *token[4]; 30 - /* order must correspond to SYSINIT..RESTART constants */ 31 - static const char actions[] ALIGN1 = 32 - "sysinit\0""respawn\0""askfirst\0""wait\0""once\0" 33 - "ctrlaltdel\0""shutdown\0""restart\0"; 34 - 35 - parser_t *parser = config_open2(INITTAB, fopen_for_read); 36 - /* No inittab file -- set up some default behavior */ 37 - if (parser == NULL) { 38 + parser_t *parser = config_open2("/etc/inittab", fopen_for_read); 39 + 40 + if (parser == NULL) 41 +#endif 42 + { 43 + /* No inittab file -- set up some default behavior */ 44 /* Reboot on Ctrl-Alt-Del */ 45 new_init_action(CTRLALTDEL, "reboot", ""); 46 /* Umount all filesystems on halt/reboot */ 47 @@ -699,11 +698,17 @@ 48 new_init_action(SYSINIT, INIT_SCRIPT, ""); 49 return; 50 } 51 + 52 +#if ENABLE_FEATURE_USE_INITTAB 53 /* optional_tty:ignored_runlevel:action:command 54 * Delims are not to be collapsed and need exactly 4 tokens 55 */ 56 while (config_read(parser, token, 4, 0, "#:", 57 PARSE_NORMAL & ~(PARSE_TRIM | PARSE_COLLAPSE))) { 58 + /* order must correspond to SYSINIT..RESTART constants */ 59 + static const char actions[] ALIGN1 = 60 + "sysinit\0""respawn\0""askfirst\0""wait\0""once\0" 61 + "ctrlaltdel\0""shutdown\0""restart\0"; 62 int action; 63 char *tty = token[0]; 64 65 @@ -727,6 +732,7 @@ 66 parser->lineno); 67 } 68 config_close(parser); 69 +#endif 70 } 71 72 #if ENABLE_FEATURE_USE_INITTAB 21 73 diff -Naur busybox-1.13.2.orig/modutils/depmod.c busybox-1.13.2/modutils/depmod.c 22 74 --- busybox-1.13.2.orig/modutils/depmod.c 2008-11-09 09:28:03.000000000 -0800 23 +++ busybox-1.13.2/modutils/depmod.c 2009-0 1-25 12:52:44.229924290-080075 +++ busybox-1.13.2/modutils/depmod.c 2009-02-03 18:52:37.966500907 -0800 24 76 @@ -33,7 +33,7 @@ 25 77 enum { … … 141 193 while (m->symbols) { 142 194 printf("alias symbol:%s %s\n", 195 diff -Naur busybox-1.13.2.orig/modutils/modutils-24.c busybox-1.13.2/modutils/modutils-24.c 196 --- busybox-1.13.2.orig/modutils/modutils-24.c 2008-11-28 22:48:56.000000000 -0800 197 +++ busybox-1.13.2/modutils/modutils-24.c 2009-02-03 18:52:40.062637519 -0800 198 @@ -2150,7 +2150,7 @@ 199 sec->name = name; 200 sec->idx = newidx; 201 if (size) 202 - sec->contents = xmalloc(size); 203 + sec->contents = xzalloc(size); 204 205 obj_insert_section_load_order(f, sec); 206 207 @@ -2165,7 +2165,7 @@ 208 int newidx = f->header.e_shnum++; 209 struct obj_section *sec; 210 211 - f->sections = xrealloc(f->sections, (newidx + 1) * sizeof(sec)); 212 + f->sections = xrealloc_vector(f->sections, 2, newidx); 213 f->sections[newidx] = sec = arch_new_section(); 214 215 sec->header.sh_type = SHT_PROGBITS; 216 @@ -2175,7 +2175,7 @@ 217 sec->name = name; 218 sec->idx = newidx; 219 if (size) 220 - sec->contents = xmalloc(size); 221 + sec->contents = xzalloc(size); 222 223 sec->load_next = f->load_order; 224 f->load_order = sec; 225 @@ -2571,8 +2571,7 @@ 226 /* Collect the modules' symbols. */ 227 228 if (nmod) { 229 - ext_modules = modules = xmalloc(nmod * sizeof(*modules)); 230 - memset(modules, 0, nmod * sizeof(*modules)); 231 + ext_modules = modules = xzalloc(nmod * sizeof(*modules)); 232 for (i = 0, mn = module_names, m = modules; 233 i < nmod; ++i, ++m, mn += strlen(mn) + 1) { 234 struct new_module_info info; 235 @@ -2652,13 +2651,14 @@ 236 } 237 238 239 -static void new_create_this_module(struct obj_file *f, const char *m_name) 240 +static void new_create_this_module(struct obj_file *f, const char *m_name) 241 { 242 struct obj_section *sec; 243 244 sec = obj_create_alloced_section_first(f, ".this", tgt_sizeof_long, 245 sizeof(struct new_module)); 246 - memset(sec->contents, 0, sizeof(struct new_module)); 247 + /* done by obj_create_alloced_section_first: */ 248 + /*memset(sec->contents, 0, sizeof(struct new_module));*/ 249 250 obj_add_symbol(f, SPFX "__this_module", -1, 251 ELF_ST_INFO(STB_LOCAL, STT_OBJECT), sec->idx, 0, 252 @@ -2965,9 +2965,9 @@ 253 if (i == f->header.e_shnum) { 254 struct obj_section *sec; 255 256 + f->header.e_shnum++; 257 f->sections = xrealloc_vector(f->sections, 2, i); 258 f->sections[i] = sec = arch_new_section(); 259 - f->header.e_shnum = i + 1; 260 261 sec->header.sh_type = SHT_PROGBITS; 262 sec->header.sh_flags = SHF_WRITE | SHF_ALLOC; 263 @@ -3006,12 +3006,9 @@ 264 for (i = 0; i < f->header.e_shnum; ++i) { 265 struct obj_section *s = f->sections[i]; 266 if (s->header.sh_type == SHT_NOBITS) { 267 + s->contents = NULL; 268 if (s->header.sh_size != 0) 269 - s->contents = memset(xmalloc(s->header.sh_size), 270 - 0, s->header.sh_size); 271 - else 272 - s->contents = NULL; 273 - 274 + s->contents = xzalloc(s->header.sh_size); 275 s->header.sh_type = SHT_PROGBITS; 276 } 277 } 278 @@ -3275,14 +3272,13 @@ 279 case SHT_SYMTAB: 280 case SHT_STRTAB: 281 case SHT_RELM: 282 + sec->contents = NULL; 283 if (sec->header.sh_size > 0) { 284 - sec->contents = xmalloc(sec->header.sh_size); 285 + sec->contents = xzalloc(sec->header.sh_size); 286 fseek(fp, sec->header.sh_offset, SEEK_SET); 287 if (fread(sec->contents, sec->header.sh_size, 1, fp) != 1) { 288 bb_perror_msg_and_die("error reading ELF section data"); 289 } 290 - } else { 291 - sec->contents = NULL; 292 } 293 break; 294 143 295 diff -Naur busybox-1.13.2.orig/testsuite/mdev.tests busybox-1.13.2/testsuite/mdev.tests 144 296 --- busybox-1.13.2.orig/testsuite/mdev.tests 2008-11-09 09:28:19.000000000 -0800 145 +++ busybox-1.13.2/testsuite/mdev.tests 2009-0 1-25 12:52:44.443204916-0800297 +++ busybox-1.13.2/testsuite/mdev.tests 2009-02-03 18:52:38.510535828 -0800 146 298 @@ -111,6 +111,22 @@ 147 299 … … 169 321 diff -Naur busybox-1.13.2.orig/util-linux/mdev.c busybox-1.13.2/util-linux/mdev.c 170 322 --- busybox-1.13.2.orig/util-linux/mdev.c 2008-11-09 09:28:22.000000000 -0800 171 +++ busybox-1.13.2/util-linux/mdev.c 2009-0 1-25 12:52:44.443204916-0800323 +++ busybox-1.13.2/util-linux/mdev.c 2009-02-03 18:52:38.510535828 -0800 172 324 @@ -179,8 +179,9 @@ 173 325 unsigned i, n;
Note:
See TracChangeset
for help on using the changeset viewer.