I'd like to output a map file from the gcc linker to the bin directory. I can easily output a map file to the source directory like this:

exe demo
  : # sources
    ...
  : # requirements
    <linkflags>"-Xlinker -Map=demo.map"
  ;

But how can I compute the bin output directory when adding the linkflag?