diff --git a/ChangeLog b/ChangeLog index 6c6c7a341..442797ccc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2012-05-28 Vladimir Serbinenko + + * grub-core/genmod.sh.in: Fix a bug in Apple part which caused + dependency discard. + 2012-05-27 Vladimir Serbinenko * grub-core/normal/main.c (read_config_file): Provide config_file and diff --git a/grub-core/genmod.sh.in b/grub-core/genmod.sh.in index a992599f1..f4674c6ad 100644 --- a/grub-core/genmod.sh.in +++ b/grub-core/genmod.sh.in @@ -76,7 +76,7 @@ else # Attach .modname and .moddeps sections echo "char modname[] __attribute__ ((section(\"_modname, _modname\"))) = \"$modname\";" >$t1 - for dep in $deps; do echo "char moddep_$dep[] __attribute__ ((section(\"_moddeps, _moddeps\"))) = \"$dep\";" >$t2; done + for dep in $deps; do echo "char moddep_$dep[] __attribute__ ((section(\"_moddeps, _moddeps\"))) = \"$dep\";" >>$t2; done if test -n "$deps"; then @TARGET_CC@ @TARGET_LDFLAGS@ -ffreestanding -nostdlib -o $tmpfile2 $t1 $t2 $tmpfile -Wl,-r,-d