Changeset afdcc60e in mainline for boot/Makefile.build


Ignore:
Timestamp:
2011-04-29T16:15:13Z (13 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
30c4005, 3f461ecf, bae7bdc
Parents:
933cadf
Message:

Link with -n (nmagic) instead of -N (omagic). omagic makes text sections
writable, which is wrong and breaks dynamic linking of variables
(since it makes the link editor put relocations in the text section
instead of the GOT).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • boot/Makefile.build

    r933cadf rafdcc60e  
    111111
    112112$(RAW): $(OBJECTS) $(COMPONENT_OBJECTS) $(LINK)
    113         $(LD) -N $(LFLAGS) -T $(LINK) -M -Map $(MAP) -o $@ $(COMPONENT_OBJECTS) $(OBJECTS)
     113        $(LD) -n $(LFLAGS) -T $(LINK) -M -Map $(MAP) -o $@ $(COMPONENT_OBJECTS) $(OBJECTS)
    114114
    115115$(LINK): $(LINK).comp $(DEPEND)
Note: See TracChangeset for help on using the changeset viewer.