Changeset afdcc60e in mainline for uspace/Makefile.common


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
  • uspace/Makefile.common

    r933cadf rafdcc60e  
    185185
    186186$(BINARY): $(LINKER_SCRIPT) $(OBJECTS) $(LIBS) $(BASE_LIBS)
    187         $(LD) -N $(LFLAGS) -T $(LINKER_SCRIPT) -M -Map $(BINARY).map -o $(BINARY) $(OBJECTS) $(LIBS) $(BASE_LIBS)
     187        $(LD) -n $(LFLAGS) -T $(LINKER_SCRIPT) -M -Map $(BINARY).map -o $(BINARY) $(OBJECTS) $(LIBS) $(BASE_LIBS)
    188188ifeq ($(CONFIG_STRIP_BINARIES),y)
    189189        $(STRIP) $(BINARY)
Note: See TracChangeset for help on using the changeset viewer.