diff options
Diffstat (limited to 'ld')
-rw-r--r-- | ld/ChangeLog | 6 | ||||
-rw-r--r-- | ld/emultempl/armelf.em | 7 |
2 files changed, 10 insertions, 3 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog index 7e8c310..f5c7438 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,9 @@ +2009-09-25 Martin Thuresson <martint@google.com> + + Update soruces to make arm targets compile cleanly with + -Wc++-compat: + * emultempl/armelf.em: Add casts. + 2009-09-23 Matt Rice <ratmice@gmail.com> * emultempl/elf32.em (gld${EMULATION_NAME}_add_options): Add --audit, diff --git a/ld/emultempl/armelf.em b/ld/emultempl/armelf.em index b50a2a0..ea00b87 100644 --- a/ld/emultempl/armelf.em +++ b/ld/emultempl/armelf.em @@ -276,7 +276,8 @@ gld${EMULATION_NAME}_after_allocation (void) /* Build a sorted list of input text sections, then use that to process the unwind table index. */ unsigned int list_size = 10; - asection **sec_list = xmalloc (list_size * sizeof (asection *)); + asection **sec_list = (asection **) + xmalloc (list_size * sizeof (asection *)); unsigned int sec_count = 0; LANG_FOR_EACH_INPUT_STATEMENT (is) @@ -302,8 +303,8 @@ gld${EMULATION_NAME}_after_allocation (void) if (sec_count == list_size) { list_size *= 2; - sec_list = xrealloc (sec_list, - list_size * sizeof (asection *)); + sec_list = (asection **) + xrealloc (sec_list, list_size * sizeof (asection *)); } sec_list[sec_count++] = sec; |